I would like a condition in the WHERE statement of PostgreSQL which says AND assets.project_name=users.user_active_project
to be executed only if Switch1
is on.
I was thinking perhaps adding something like {{Switch1.isSwitchedOn ? true : false }}
in the WHERE statement of the SQL but I do not know how to insert AND assets.project_name=users.user_active_project
in the true condition and then say nothing to happen if false.