API Reference › Dict › Dict.has
method

Dict.has

Dict.has(d, key) -> bool

Returns true when key is present in the map.

Example

program Demo {
  handler Step phase Update {
    if Dict.has(bank, "gold") { spend() }
  }
}
← All symbols