What do people find easier to understand? Personally I prefer code number 1. 1: #include <MsgBoxConstants.au3>
Local $bIsTrue = True
Local $sMessage = 'This is ' & ($bIsTrue ? 'True' : 'False')
MsgBox($MB_SYSTEMMODAL, '', $sMessage)
2: #include <MsgBoxConstants.au3>
Local $bIsTrue = True
Local $sMessage
If $bIsTrue Then
$sMessage = 'This is True'
Else
$sMessage = 'This is False'
EndIf
MsgBox($MB_SYSTEMMODAL, '', $sMessage)