then: 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 or second element of array is executed depending on result of [[if]] condition. Result of the expression executed is returned as a result (result may be nothing). | |||
Examples: [[if]] (a>b) then {c=1} [[else]] {c=2}; [[if]] (a>b) then {c=1;c=2} |= Description | |||
____________________________________________________________________________________________ | |||
''' | | if '''then''' else |= Syntax | ||
|p1= if: [[If Type]] |= Parameter 1 | |||
|p2= else: [[Array]] |= Parameter 2 | |||
| [[Anything]] |= Return value | |||
____________________________________________________________________________________________ | |||
| |= 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> | |||
[[Category:Scripting Commands|THEN]] | |||
[[Category:Scripting Commands OFP 1.96|THEN]] | |||
[[Category:Scripting Commands ArmA|THEN]] | |||
[[Category:Armed Assault: Control Flows|THEN]] | |||
[[ |
Revision as of 22:53, 1 August 2006
Description
- Description:
- if then else
- Groups:
- Uncategorised
Syntax
- Syntax:
- Anything
- Parameters:
- if: If Type
- else: Array
- Return Value:
- Return value needed
Examples
- Examples:
- Example needed
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