Flexible Rules
Home Publications Examples Downloads API Overview API Doc Tutorials

match

Synopsis:

(match key in dict)
(match key in prop)
(match key in prop of entity)

Description:

Retrieves the value associated to the key key in the dictionary dict, resp. in the dictionary stored in the property prop of the current entity or of the entity entity.

Example:

(match "player1" in (dict (list "player1") (list 5))) --> 5
(match "player1" in {"player1": 5}) --> 5
(new property "playerPoints" as {"player1": 10})
(match "player1" in "playerPoints") --> 10


Contact: Fulvio Frapolli (fulvio . frapolli //at// unifr . ch), Amos Brocco (amos . brocco //at// unifr . ch)
* Remove spaces and replace //at// with @
© 2009