contains. Check for key existance in hash [3.2.3]

^hash.contains[key]

The method checks if a hash contains the specified key. It returns bool value (true/false).
Using
^hash.contains[_default] you can check whether the hash has the default value specified [3.4.5].

Example
Code…

^if(^man.contains[birthday]){
   Birthday specified for visitor.
}





Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 20.04.2017