"Contains" syntax for calculated field on schema (expr=)
Hi There,
I'm looking to create a SQL calculated field on a custom schema, based on another field on the same schema.
The expression I'm looking to use is if field x contains a string, return field y (the calculated field) as true.
Example code from schema XML:
<attribute label="Field A" length="50" name="fieldA" type="string"/>
<attribute label="Field B" name="fieldB" expr="IF @fieldA contains 'Example' return 1, else 0" type="boolean"/>
Can anyone help with the Red bit?
I'm sure it needs an Iif function, I simply don't know how to write the condition if @fieldA contains 'example'
Thanks
David