welcome@transmuton.space             TRANSMUTON             Programming Language

About Comments Range Syntax Detacher Merger Swaper Digipulation Comparons Logicons Bitwisons Conditons

Comparons


"Comparons" are functionalities used to compare vals of operands,
the result of which is a "bool-val" (boolean val: True or False), or vals -1 0 1 .



   ==        !==        ==&        !==&              "Common Comparons" (True False)



   >         <          >&         <&                ---------|--------



   >==       <==        >==&       <==&              ---------|--------



                        <==>       <==>&             "Combo Comparons"  (-1 0 1)




      ==       Samen              a == b     
     !==       NoSamen            a !== b
     ==&       SamenVal           a ==& b
    !==&       NoSamenVal         a !==& b



       >       Moren              a > b
       <       Lessen             a < b
      >&       MorenVal           a >& b
      <&       LessenVal          a <& b



     >==       MorenSamen         a >== b
     <==       LessenSamen        a <== b
    >==&       MorenSamenVal      a >==& b
    <==&       LessenSamenVal     a <==& b



    <==>       MoLeSen            a <==> b
   <==>&       MoLeSenVal         a <==>& b
          

#>  Compare "numbers"


a = 5
b = 3
c = 1
d = 1



a > b          ==       5 > 3          ==        True        #>  Moren
a < b          ==       5 < 3          ==        False       #>  Lessen
a == b         ==       5 == 3         ==        False       #>  Samen
a !== b        ==       5 !== 3        ==        True        #>  NoSamen

b >== c        ==       3 >== 1        ==        True        #>  MorenSamen
b <== c        ==       3 <== 1        ==        False       #>  LessenSamen

c >== d        ==       1 >== 1        ==        True        #>  MorenSamen
c <== d        ==       1 <== 1        ==        True        #>  LessenSamen

b <==> a       ==       3 <==> 5       ==       -1           #>  MoLeSen
c <==> d       ==       1 <==> 1       ==        0           #>  ---|---
a <==> b       ==       5 <==> 3       ==        1           #>  ---|---

          

#>  Compare "string-numbers"


m = "5"
n = "3"
o = "1"
p = "1"



m >& n         ==      "5" >& "3"       ==       True        #>  MorenVal
m <& n         ==      "5" <& "3"       ==       False       #>  LessenVal
m ==& n        ==      "5" ==& "3"      ==       False       #>  SamenVal
m !==& n       ==      "5" !==& "3"     ==       True        #>  NoSamenVal

n >==& o       ==      "3" >==& "1"     ==       True        #>  MorenSamenVal
n <==& o       ==      "3" <==& "1"     ==       False       #>  LessenSamenVal

o >==& p       ==      "1" >==& "1"     ==       True        #>  MorenSamenVal
o <==& p       ==      "1" <==& "1"     ==       True        #>  LessenSamenVal

n <==>& m      ==      "3" <==>& "5"    ==      -1           #>  MoLeSen
o <==>& p      ==      "1" <==>& "1"    ==       0           #>  ---|---
m <==>& n      ==      "5" <==>& "3"    ==       1           #>  ---|---

          

#>  Compare "numbers" with "string-numbers"


a = 5    ;;    m = "5"
b = 3    ;;    n = "3"
c = 1    ;;    o = "1"



a >& n         ==       5 >& "3"        ==       True        #>  MorenVal
a <& n         ==       5 <& "3"        ==       False       #>  LessenVal
a ==& n        ==       5 ==& "3"       ==       False       #>  SamenVal
a !==& n       ==       5 !==& "3"      ==       True        #>  NoSamenVal

b >==& o       ==       3 >==& "1"      ==       True        #>  MorenSamenVal
b <==& o       ==       3 <==& "1"      ==       False       #>  LessenSamenVal

c >==& o       ==       1 >==& "1"      ==       True        #>  MorenSamenVal
c <==& o       ==       1 <==& "1"      ==       True        #>  LessenSamenVal

b <==>& m      ==       3 <==>& "5"     ==      -1           #>  MoLeSen
c <==>& o      ==       1 <==>& "1"     ==       0           #>  ---|---
a <==>& n      ==       5 <==>& "3"     ==       1           #>  ---|---