Difference between revisions of "Kray3 SDK/Logic operations"

From Kray
Jump to: navigation, search
(Logic operators)
m
Line 1: Line 1:
= Logic operators =
+
== Logic operators ==
 
And (&) Or (|), Not (!) logic operators can be used on doubles.
 
And (&) Or (|), Not (!) logic operators can be used on doubles.
 
{{Kray3script | path=operators/operators10.kray | runbutton=1}}
 
{{Kray3script | path=operators/operators10.kray | runbutton=1}}
  
= Comparision =
+
== Comparision ==
 
You can use comparision operators < > <= >= on doubles, strings.
 
You can use comparision operators < > <= >= on doubles, strings.
 
{{Kray3script | path=operators/operators8.kray | runbutton=1}}
 
{{Kray3script | path=operators/operators8.kray | runbutton=1}}

Revision as of 15:58, 17 August 2012

Logic operators

And (&) Or (|), Not (!) logic operators can be used on doubles.

<include highlight="kray3" src="/pub/kray3_script/operators/operators10.kray"></include>{{#ifeq: 1|1|

Run in KrayLive|}}

Comparision

You can use comparision operators < > <= >= on doubles, strings.

<include highlight="kray3" src="/pub/kray3_script/operators/operators8.kray"></include>{{#ifeq: 1|1|

Run in KrayLive|}}

You can use comparision operators == != on doubles, strings, vectors and axes.

<include highlight="kray3" src="/pub/kray3_script/operators/operators9.kray"></include>{{#ifeq: 1|1|

Run in KrayLive|}}