Skip to content

IsNot

Name - Description Default Type
<input> Any
<output> Bool
Value The value to test against for equality. 0 Any

Details

This shard compares the input to its :Value parameter and outputs true if they are different, else outputs false.

If the input and :Value parameter have different data types they will be assessed as inequal by default even if they are numerically equal (for example int 5 is not equal to float 5.0).

See also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;; string comparison
"hello" (IsNot "HELLO")
(Assert.Is true :Break true)

;; integer comparison
2 (Math.Add 3) (IsNot 4)
(Assert.Is true :Break true)

;; integer/float comparison
4 (IsNot (+ 1.0 3.0))
(Assert.Is true :Break true)

;; string/integer comparison
"Shards" (IsNot 122)
(Assert.Is true :Break true)

;; sequence comparison
[1 2 3] (IsNot [1 3])
(Assert.Is true :Break true)

;; table comparison
{:key3 [10 20] :key2 [30]} (IsNot {:key1 [10 20] :key2 [30]})
(Assert.Is true :Break true)

;; sequence/table comparison
[1 2 3] (IsNot {:key1 [1 2] :key2 [3]})
(Assert.Is true :Break true)