Attribute : Code

code

Profile: Current Store
Attribute: Code
Sub-Attribute: NA
Operators: contains, exists, isEmpty, isNotNull, isNull, isValidDate, matches and notExists, ==(string comparison)
Syntax: currentStore.code[operator][value]
Example: currentStore.code.contains("6TM")

AttributeAttributeOperatorExample
currentStorecodeContains - used to see if the string contains the defined valuecurrentStore.code.contains("PUM45")
currentStorecodeExists - Some proper value exists for this string (i.e. source passed a value that was not an empty string)currentStore.code.exists()
currentStorecodeMatches - this is used to perform regular expression based matching on the stringcurrentStore.code.matches("MH09")
currenrStorecode== (compare the string to find the exact match)currentStore.code == "indianterrain.web"
currentStorecodeisNull - checks if the string is Null i.e. it was not passed from source
isNotNull - checks if the the string is NOT Null i.e. some value was passed from source (even an empty string counts)
currentStore.code.isNotNull()
Example: Write a rule to check the nike store code, located in Hyderabad is "nike.hyd.himayatnagar"
Rule: currentStore.code == "nike.hyd.himayatnagar"