Krug.BooleanUtil (Krug v2.0.27) View Source

Utilitary module for simplify some Boolean operations.

Link to this section Summary

Functions

Compares 2 values verifing if are equals in boolean conversion.

Link to this section Functions

Link to this function

equals(boolean1, boolean2)

View Source

Compares 2 values verifing if are equals in boolean conversion.

Examples

iex > Krug.BooleanUtil.equals(true,true)
true
iex > Krug.BooleanUtil.equals("true",true)
true
iex > Krug.BooleanUtil.equals(1,1)
true
iex > Krug.BooleanUtil.equals(true,1)
true
iex > Krug.BooleanUtil.equals(true,"1")
true
iex > Krug.BooleanUtil.equals(1,"1")
true
iex > Krug.BooleanUtil.equals("1","1")
true
iex > Krug.BooleanUtil.equals("0","0")
true
iex > Krug.BooleanUtil.equals("false","0")
true
iex > Krug.BooleanUtil.equals("false",0)
true
iex > Krug.BooleanUtil.equals("false","true")
false
iex > Krug.BooleanUtil.equals("A","B")
true
iex > Krug.BooleanUtil.equals("A",true)
false