if: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (added see also) |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofpr |= Game name | |||
|1.85|= Game version | |||
____________________________________________________________________________________________ | |||
| First part of if command. |= Description | |||
____________________________________________________________________________________________ | |||
| '''if''' condition |= Syntax | |||
|p1= condition: [[Boolean]] |= Parameter 1 | |||
| [[If Type]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <code>if (a>b) [[then]] {a<nowiki>=</nowiki>b}</code> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[else], [[Control Structures]]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<dd class="notedate">Posted on August 4, 2006 - 10:55</dd> | |||
<dt class="note">'''[[User:Hardrock|hardrock]]'''</dt><dd class="note">''Notes from before the conversion:'' | |||
Standard syntax: | |||
<nowiki>=</nowiki> if a [[then]] b | |||
Alternative syntax | |||
<nowiki>= ? a : b </nowiki> | |||
</dd> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
Line 5: | Line 48: | ||
[[Category:Scripting Commands OFP 1.96|IF]] | [[Category:Scripting Commands OFP 1.96|IF]] | ||
[[Category:Scripting Commands ArmA|IF]] | [[Category:Scripting Commands ArmA|IF]] | ||
[[Category:ArmA: Control Structures|IF]] | |||
[[Category:Command Group: Program Flow|IF]] |
Revision as of 15:39, 15 January 2007
{{Command|= Comments ____________________________________________________________________________________________
| ofpr |= Game name
|1.85|= Game version ____________________________________________________________________________________________
| First part of if command. |= Description ____________________________________________________________________________________________
| if condition |= Syntax
|p1= condition: Boolean |= Parameter 1
| If Type |= Return value ____________________________________________________________________________________________
|x1= if (a>b) then {a=b}
|= Example 1
____________________________________________________________________________________________
| [[else], Control Structures] |= See also
}}
Notes
- Posted on August 4, 2006 - 10:55
- hardrock
- Notes from before the conversion: Standard syntax: = if a then b Alternative syntax = ? a : b