Condition
Function -> Condition(param 1, param 2, param 3, param 4)
"Condition" function can be used to compare two values or attributes. This function can be
used on global and asset class specific attributes.
param 1 - This parameter can be a fixed value or derived from a Formula.
param 2 - This parameter can be a fixed value or derived from a Formula. This value can also
be null
param 3 - condition operator
eq
lt
le
gt
ge
ne
param 4 - when the function is run
OPTIONS:
CREATE: Function will be run only when an asset is created
UPDATE: Function will be run when an asset is created or modified
This function is run automatically in the background whenever an asset is created or
updated via import, web interface or mobile app.
Example 1 - the condition function will evaluate to false whenever an asset with attribute BEACON is created or updated and its value is empty, blank or missing
condition([$attribute.BEACON], null, ne, UPDATE)
Return value - When used as a post processing function, the create or update asset class will fail when condition evaluates to false. Update or create asset will succeed, if condition evaluates to true.
Updated about 2 months ago