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() }
}
}Dict.has(d, key) -> bool
Returns true when key is present in the map.
program Demo {
handler Step phase Update {
if Dict.has(bank, "gold") { spend() }
}
}