a greater= b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}")
(fixed page)
Line 1: Line 1:
{{Command|Comments=
{{Command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp


|1.00|Game version=
|version1= 1.00


|gr1= Math |GROUP1=
|descr= Returns [[true]] if '''a''' is greater than or equal to '''b''', else returns [[false]].
|gr2= Variables |GROUP2=
____________________________________________________________________________________________


| Returns [[true]] if '''a''' is greater than or equal to '''b''', else returns [[false]]. |DESCRIPTION=
|gr1= Math
____________________________________________________________________________________________


|s1= a '''><nowiki>=</nowiki>''' b |SYNTAX
|gr2= Variables


|p1= a: [[Number]] |Parameter1
|s1= a '''><nowiki>=</nowiki>''' b


|p2= b: [[Number]] |Parameter2
|p1= a: [[Number]]


| [[Boolean]] |RETURNVALUE
|p2= b: [[Number]]
____________________________________________________________________________________________


|x1 = <code>[[if]] ([[fuel]] truck1 ><nowiki>=</nowiki> 0.5) [[then]] {[[hint]] "Truck1 has at least half a tank of fuel left."}</code> |=
|r1= [[Boolean]]
____________________________________________________________________________________________


| [[Operators]] |SEEALSO=
|x1= <code>[[if]] ([[fuel]] truck1 ><nowiki>=</nowiki> 0.5) [[then]] {[[hint]] "Truck1 has at least half a tank of fuel left."};</code>


|seealso= [[Operators]]
}}
}}
<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|#]]
[[Category:Scripting Commands|#]]

Revision as of 12:30, 9 January 2021

Hover & click on the images for description

Description

Description:
Returns true if a is greater than or equal to b, else returns false.
Groups:
MathVariables

Syntax

Syntax:
a >= b
Parameters:
a: Number
b: Number
Return Value:
Boolean

Examples

Example 1:
if (fuel truck1 >= 0.5) then {hint "Truck1 has at least half a tank of fuel left."};

Additional Information

See also:
Operators

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