and

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Returns "true" only if both conditions are true

Syntax

Syntax:
Boolean = Boolean and Boolean
Parameters:
Boolean
Return Value:
Boolean

Examples

Example 1:
if (alive player) and (_enemycount==0) then {hint "you win"}

Additional Information

Multiplayer:
no special considerations
See also:
a && b, or, Operators

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Royal Blackwatch
The complete code for multiple statements linked with 'and' need to be put in brackets too. So correct code for Example 1 should be:

if ((alive player) and (enemycount==0)) then {hint "you win"}

Bottom Section

Personal tools
Buy ArmA now!