Hello,
We are trying to write a mysql query which checks for an equality condition with the appsmith parameter - appsmith.store.currentStateName in the WHERE clause, currentStateName is set in a javacript function.In the query, this requires the "Use Prepared Statement" toggle to be set as ON. Also the mysql keyword - IS NULL condition has to be checked for a column value which requires the "Use Prepared Statement" toggle to be set as OFF. Can you please suggest how i can achieve both the conditions in a single query in Appsmith
Ex: select * from table WHERE field1.CurrentState = {{ appsmith.store?.currentStateName}} AND field2 IS NULL.
Thanks