FLOIP / flow-spec

7 stars 6 forks source link

Expression Proposal: `IN` - Checks the existence of element in an Array #73

Open lakhbawa opened 1 year ago

lakhbawa commented 1 year ago

Type of Expression: Array Function Return Type: Boolean Case Sensitive: Yes

Expression Example: @in('Ten', array(5, 34, 'Ten')) -> TRUE @in('ten', array(5, 34, 'Ten') -> FALSE @in(5, array(5, 34, 'Ten') -> TRUE @in(5, array('5', 34, 'Ten') -> TRUE @in('5', array(5, 34, 'Ten') -> TRUE

Common Use Case: This expression can be used to find the existence of specific words/characters in a given array of possible options