|  Developer
Updated on July 15, 2022

compareStrings

  • This event arises when the of an item/expression corresponds to a condition set in this block. The implements the same set of operators and works exactly the same way as the compareNumbers does.
  • An or type can be used instead of a constant item value.
Edit
Field Type Required Description
blockOptions.method.args.item
blockOptions.method.args.expression
string + Argument declaration of value source name. The value should be in block with name.
blockOptions.method.args.value string + Argument declaration of a value to compare with. Could be a constant value or an expression reference or an item id. The value should be in block with name.
blockOptions.method.args.comparator string + Argument declaration of comparator state. The value should be in block with name. Possible comparators are , , , , , .
Edit
				
					"when" : [
    {
        "blockType":"when",
        "blockOptions":{
            "method":{
                "name":"compareStrings",
                "args":{
                    "item":"item",
                    "comparator":"comparator",
                    "value":"value"
                }
            }
        },
        "fields":[
            {
                "name":"item",
                "type":"item",
                "value":"5de64f6a70c7be0541cc0853"
            },
            {
                "name":"comparator",
                "type":"string",
                "value": ">"
            },
            {
                "name":"value",
                "type":"string",
                "value": "<value>"
            }
        ]
    }
]				
			

In a case of expression, the field should reference the existing expression by name:

				
					{
    "name":"value",
    "type":"expression",
    "value":"<expressionName>"
}