View Source BitcoinLib.Script.Value (BitcoinLib v0.2.0-pre1)

Truthness evaluator for script execution outcomes

Link to this section Summary

Functions

Returns true if the value passed to it is considered as such

Link to this section Functions

@spec is_true?(list() | integer() | any()) :: boolean()

Returns true if the value passed to it is considered as such

examples

Examples

iex> BitcoinLib.Script.Value.is_true?(1) true