and: Difference between revisions
Jump to navigation
Jump to search
(expanded) |
mNo edit summary |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | a '''and''' b |= Syntax | ||
|p1= a: a test condition or a variable that return a [[Boolean]] value |= Parameter 1 | |p1= a: a test condition or a variable that return a [[Boolean]] value |= Parameter 1 | ||
Line 21: | Line 21: | ||
|x1= <pre>if (alive player) and (enemycount==0) then {hint "you win"}</pre> |= Example 1 | |x1= <pre>if (alive player) and (enemycount==0) then {hint "you win"}</pre> |= Example 1 | ||
|mp= no special considerations|=____________________________________________________________________________________________ | |mp= no special considerations|= | ||
____________________________________________________________________________________________ | |||
| [[or]] |= See also | | [[a && b]], [[or]] |= See also | ||
}} | }} |
Revision as of 00:18, 14 December 2006
Description
- Description:
- Returns "true" only if both conditions are true
- Multiplayer:
- no special considerations
- Groups:
- Uncategorised
Syntax
- Syntax:
- a and b
- Parameters:
- a: a test condition or a variable that return a Boolean value
- b: a test condition or a variable that return a Boolean value
- Return Value:
- Boolean
Examples
- Example 1:
if (alive player) and (enemycount==0) then {hint "you win"}
Additional Information
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