John Smith
john@example.com
aa = true & false
a = if aa {
1
} else {
2
}
assert(a, isEqualTo = 2, error = "right branch of and is false makes the whole expression false")
bb = false & true
b = if bb {
assert(b, isEqualTo = 2, error = "left branch of and is false makes the whole expression false")
cc = true & true
c = if cc {
assert(c, isEqualTo = 1, error = "both branches of and are true makes the whole expression true")
dd = false & false
d = if dd {
assert(d, isEqualTo = 2, error = "both branches of and are false makes the whole expression false")