Bool

struct Bool
  • int

    Mechanica

    Returns 1 if true, or 0 if false.

    Declaration

    Swift

    public var int: Int
  • Mechanica

    Returns true if true, or false if false.

    Declaration

    Swift

    public var string: String
  • Mechanica

    Returns true or false randomly.

    Declaration

    Swift

    static public func random() -> Bool
  • Mechanica

    Returns a new Bool with the inverted value of self.

    Declaration

    Swift

    public var toggled: Bool
  • Mechanica

    Inverts the value of self.

    Declaration

    Swift

    public mutating func toggle()