StendhalScripting/Lua: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Setting Zone: add zone music
imported>AntumDeluge
Line 173: Line 173:
myTable.myFunction()
myTable.myFunction()
</pre>
</pre>

== Comparison Operators ==

{| class="wikitable"
|+ Logical Operators
! Operator !! Description !! Java Equivalent
|-
| and || logical ''and'' || &&
|-
| or || logical ''or'' || <nowiki>||</nowiki>
|-
| not || logical ''opposite'' || !
|}

{| class="wikitable"
|+ Relational Operators
! Operator !! Description !! Java Equivalent
|-
| < || less than || <
|-
| > || greater than || >
|-
| <= || less than or equal to || <=
|-
| >= || greater than or equal to || >=
|-
| == || equal to || ==
|-
| ~= || not equal to || !=
|}


= Stendhal Application =
= Stendhal Application =