Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ast/Nary

Index

Classes

Functions

Functions

And

  • "Logical and expression.

    Produces 1 if all arguments are nonzero. Otherwise produces 0.

    All arguments must be PyTeal expressions that evaluate to uint64, and there must be at least two arguments.

    example

    And(Txn.amount() == new Int(500), Txn.fee() <= new Int(10));

    Parameters

    • Rest ...args: Expr[]

      the logical operands

    Returns NaryExpr

Concat

  • Concatenate byte strings.

    Produces a new byte string consisting of the contents of each of the passed in byte strings joined together.

    All arguments must be PyTeal expressions that evaluate to bytes, and there must be at least two arguments.

    example

    Concat(new Bytes("hello"), new Bytes(" "), new Bytes("world"));

    Parameters

    • Rest ...args: Expr[]

      The array of expressions to concatenate

    Returns NaryExpr

Or

  • Logical or expression.

    Produces 1 if any argument is nonzero. Otherwise produces 0.

    All arguments must be PyTeal expressions that evaluate to uint64, and there must be at least two arguments.

    Parameters

    • Rest ...args: Expr[]

      the logical operands

    Returns NaryExpr

Generated using TypeDoc