Here is an example on how to execute a query based on a boolean value. A customer wanted to be able to disable the alarms extension if a point was true, else if false, enable it."alarmSetting" is a boolean property tag I used, but it can be a tag or a point. Then use the "jobRun" block to run the query that enables and disables the alarmsExt. If true (meaning disable), then it'll run "finSettingsAction(`alarm`.toStr,true,true)" else runs "finSettingsAction(`alarm`.toStr,false,true)", which enables it.