#cs --------------------------------------------------------------------------- Ternary Operator Info: ? : Select the conditionally of an expression! Example: $condition ? $expression1 : $expression2 ($expression1 if $condition is True or $expression2 if False) #ce --------------------------------------------------------------------------- #include ; --------------------------------------- $MsgBoxText = 0 $ValueSet01 = 0 $PrgSetVers = "v1.00" $PrgSetName = "TernaryOp" $PrgNameVer = $PrgSetName&" "&$PrgSetVers ; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ; ----------------------------------------------------------------------------- ; Note: Changing $ValueSet01 to any other Num will make: Condition = 'NOT TRUE' ; ----------------------------------------------------------------------------- $ValueSet01 = 0 ;-----------------------------------------> Value Set (Var#:01) $MsgBoxText = ($ValueSet01 = 0) ? ("TRUE") : ("NOT TRUE") $MsgBoxText = "Found that the Condition of $ValueSet01 = "&$MsgBoxText&"!" MsgBox(262208, $PrgNameVer&" - Condition Detected!", $MsgBoxText, 90) Exit ;----------------------------------------------------> End Of Script/Exit!