|
has key Full Description |
|
Syntax shelf test:
shelf-type? shelf-name (has | hasnt) key string-expression
attribute shelf test:
specified? attribute (has | hasnt) key string-expression
or
specified? data-attributes (has | hasnt) key string-expression
Purpose
The For example, the following code shows how global stream id-name ... output attributes key id-name when attributes has key id-name and attribute key id-name isnt implied In this example, the global switch assoc-list global counter item-no ... find "{" [any except "}"]+= curr-key "}" do when assoc-list has key "%x(curr-key)" set item-no to item of assoc-list ^ "%x(curr-key)" else ; An index of 0 means that the key wasn't found. set item-no to 0 done |