Skip to content

IsNot

Name Mandatory Description Default Type
⬅️ Input Input of any type is accepted. Any
Output ➡️ Outputs true if the input is not equal to the operand and false otherwise. Bool
Value No The value to check against. 0 Any

Checks if the input is not equal to the operand.

Details

This shard also is type sensitive and will only compare between input and operands of the same type. (e.g., 1 | IsNot(1.0) will throw a validation error).

See also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
; 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 | ToAny | IsNot(4.0) | Assert.Is(true Break: true)

; string/integer comparison
"Shards" | ToAny | 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] | ToAny | IsNot({key1: [1 2] key2: [3]}) | Assert.Is(true Break: true)