a != b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added wiki links in correct format)
m (added description)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| a '''not equal to''' b |= Description
| Returns whether one value is '''not''' equal to another. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 16: Line 16:
|p2= b: [[Number]], [[Side]], [[String]], [[Object]], [[Group]], [[Structured Text]], [[Config]], [[Display]] or [[Control]] |=
|p2= b: [[Number]], [[Side]], [[String]], [[Object]], [[Group]], [[Structured Text]], [[Config]], [[Display]] or [[Control]] |=


| [[Boolean]] |= Return value
| [[Boolean]] - <tt>true</tt> if a is not the same as b |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>counter !<nowiki>=</nowiki> 4
|x1= Some basic examples of the usage of this operator.
<br />
 
[[side]] [[player]] !<nowiki>=</nowiki> [[west]]
counter !<nowiki>=</nowiki> 4
<br />
 
nameofplayer !<nowiki>=</nowiki> "John Doe"
[[side]] [[player]] !<nowiki>=</nowiki> [[west]]
<br />
 
[[vehicle]] [[player]] !<nowiki>=</nowiki> [[player]]
nameofplayer !<nowiki>=</nowiki> "John Doe"
<br />
 
[[group]] [[player]] !<nowiki>=</nowiki> [[group]] soldierOne
[[vehicle]] [[player]] !<nowiki>=</nowiki> [[player]]
<br />
 
[[if]] ([[fuel]] truck1 !<nowiki>=</nowiki> 1) [[then]] {[[hint]] "Truck1 has less than a full tank of fuel."}</code> |=
[[group]] [[player]] !<nowiki>=</nowiki> [[group]] soldierOne
 
[[if]] ([[fuel]] truck1 !<nowiki>=</nowiki> 1) [[then]]
{
    [[hint]] "Truck1 has less than a full tank of fuel.";
} |=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 09:31, 12 December 2006

Hover & click on the images for description

Description

Description:
Returns whether one value is not equal to another.
Groups:
Uncategorised

Syntax

Syntax:
a != b
Parameters:
a: Number, Side, String, Object, Group, Structured Text, Config, Display or Control
b: Number, Side, String, Object, Group, Structured Text, Config, Display or Control
Return Value:
Boolean - true if a is not the same as b

Examples

Example 1:
Some basic examples of the usage of this operator. counter != 4 side player != west nameofplayer != "John Doe" vehicle player != player group player != group soldierOne if (fuel truck1 != 1) then { hint "Truck1 has less than a full tank of fuel."; }

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