Can IF statements be used based on database values?
Hi Paul,
Yes, IF statements can be used. So when you create an action, click advanced options and then you will see āwhen should this action runā, āsometimes or alwaysā. This is Adaloās version of the IF statement.
If you select āsometimesā, this then gives you options to specify when the action is run.
Hope this helps.
Craig
Thank you Craig, Iāve tested this but it does not seem that there is an option to check current records. For instance, I would like to use a form to create a city name, the city name should be created only when the city name is not yet in the database.
Hi @plandman,
For this Iād recommend creating a custom form, i.e. add an input field āCity Nameā and āAddā button. For this button, you could make an action to be conditional (like @crmorris2 has advised above).
And then you add a city if Count of Cities where name equals input fieldās value, equals to zero.
There is a tutorial Iāve made some time ago on a similar topic:
Best,
Victor.