Difference between revisions of "Kray3 SDK/Logic operations"

From Kray
Jump to: navigation, search
(Concatenation)
(Logic operators)
Line 2: Line 2:
 
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 =
 +
You can use comparision operators < > <= >= on doubles, strings.
 +
{{Kray3script | path=operators/operators8.kray | runbutton=1}}
 +
 +
You can use comparision operators == != on doubles, strings, vectors and axes.
 +
{{Kray3script | path=operators/operators9.kray | runbutton=1}}

Revision as of 15:57, 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|}}