Difference between revisions of "Category:Commands"

28 bytes added ,  15:16, 12 April 2006
m
clarifications on && and ||
 
imported>JOG
m (clarifications on && and ||)
Line 22: Line 22:




if ( varName > 100 ) ; greater than
[[if|if]] ( varName > 100 ) ; greater than


elseif ( varName < 20 ) ; less than
elseif ( varName < 20 ) ; less than
Line 39: Line 39:
if ( varName <= x ) ; less than or equal to
if ( varName <= x ) ; less than or equal to


if ( varName && x ) ; logical and


if ( varName || x ) ; logical or
if ( var1 == 1 && var2 != 1 ) ; logical and
 
if ( var1 != 1 || var2 >= 1 ) ; logical or
 


[[return]] ; exits the script -- no lines following will be processed
[[return]] ; exits the script -- no lines following will be processed
Anonymous user