Skip to content

Is

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

Checks if the input is equal to the operand.

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
28
29
; ; string comparison
"hello" | String.ToUpper | Is("HELLO")
Log("String is identical")
Assert.Is(true Break: true)

; ; integer comparison
2 | Math.Add(3) | Is(5)
Log("Int is identical")
Assert.Is(true Break: true)

; ; float comparison
4.0 | Is((3.0 | Math.Add(1.0)))
Log("Float is identical")
Assert.Is(true Break: true)

; ; sequence comparison
[1 2 3] | Is([1 2 3])
Log("Sequence is identical")
Assert.Is(true Break: true)

; ; table comparison 1
{key1: [10 20] key2: [30]} | Is({key1: [10 20] key2: [30]})
Log("Table is  identical")
Assert.Is(true Break: true)

; ; table comparison 2
{key2: [30] key1: [10 20]} | Is({key1: [10 20] key2: [30]})
Log("Table is identical")
Assert.Is(true Break: true)