Sha256: 28a8d5f496dfa2f20c1f6bb3a10aa187577058aa2fc1f5bd95a36f06a854c5c3

Contents?: true

Size: 448 Bytes

Versions: 8

Compression:

Stored size: 448 Bytes

Contents

# boolean.fy
# Example of boolean expressions and logical operations in fancy

true and: true . println # true
true and: nil . println # nil
nil and: nil . println # nil

true or: true . println # true
true or: nil . println # true
nil or: nil . println # nil


"--------------" println

# won't print string
nil if_true: {
  "this should _not_ be displayed" println
}

# will print string
nil if_false: {
  "this _should_ be displayed" println
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fancy-0.7.0 examples/boolean.fy
fancy-0.6.0 examples/boolean.fy
fancy-0.5.0 examples/boolean.fy
fancy-0.4.0 examples/boolean.fy
fancy-0.3.3 examples/boolean.fy
fancy-0.3.2 examples/boolean.fy
fancy-0.3.1 examples/boolean.fy
fancy-0.3.0 examples/boolean.fy