if: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
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]] | | [[If Type]] |= Return value | ||
____________________________________________________________________________________________ | |||
|x1= <pre>if (a>b) [[then]] {a=b}</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
Old Notes (temporary): | |||
Standard syntax = if a [[then]] b Alternative syntax = ? a : b See also: [[else]] | |||
[[Category:Scripting Commands|IF]] | |||
[[Category:Scripting Commands OFP 1.96|IF]] | |||
[[Category:Scripting Commands ArmA|IF]] | |||
[[Category:Armed Assault: Control Flows|IF]] | |||
Standard syntax = | |||
Alternative syntax = | |||
See also: [[else]] |
Revision as of 00:30, 2 August 2006
Description
- Description:
- First part of if command.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
if (a>b) [[then]] {a=b}
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
Old Notes (temporary):
Standard syntax = if a then b Alternative syntax = ? a : b See also: else