Difference between revisions of "Category:Commands"
Jump to navigation
Jump to search
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 ( | 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 |
Revision as of 14:16, 12 April 2006
scriptname ScriptName
begin [block type]
; comment
short varNameShort
long varNameLong
float varNameFloat
ref varNameRef
set varName to 5
if ( varName > 100 ) ; greater than
elseif ( varName < 20 ) ; less than
else
endif
if ( varName == x ) ; equals
if ( varName != x ) ; not equal to
if ( varName >= x ) ; greater than or equal to
if ( varName <= x ) ; less than or equal to
if ( var1 == 1 && var2 != 1 ) ; logical and
if ( var1 != 1 || var2 >= 1 ) ; logical or
return ; exits the script -- no lines following will be processed
set objectID.varName to 100
objectID.getav health
Subcategories
This category has the following 3 subcategories, out of 3 total.
Pages in category "Commands"
The following 11 pages are in this category, out of 11 total.