Quantcast
Channel: AutoIt v3 - Developer Chat
Viewing all articles
Browse latest Browse all 750

New ternary operator - Discussion

$
0
0

There is any advantage to use this:

(1 = 1) ? MsgBox($MB_OK, "Result: 1=1", "True!") : MsgBox($MB_OK, "Result: 1=1", "False!")

Instead of this?

If 1 = 1 Then MsgBox($MB_OK, "Result: 1=1", "True!") Else MsgBox($MB_OK, "Result: 1=1", "False!") EndIf

Viewing all articles
Browse latest Browse all 750

Latest Images

Trending Articles



Latest Images