UpdateContext(
{
check_result:
tg_open.Checked && tg_close.Checked && tg_dis.Checked && tg_bt.Checked && tg_fn.Checked && tg_tp.Checked
}
)
The ForAll() function is not designed to return results directly in the same way a loop would in a traditional programming language. Specifically, it doesn't allow you to modify the context or variables inside it in the way you're trying to do with. Try the following: // Initialize the context variable to true first UpdateContext({check_result: true}); // Collect all the toggle values into a collection ClearCollect( ck_val, [ {dt: tg_open.Checked}, {dt: tg_close.Checked}, {dt: tg_dis.Checked}, {dt: tg_bt.Checked}, {dt: tg_fn.Checked}, {dt: tg_tp.Checked} ] ); // Check if any of the values in the collection are false If( !IsBlank(LookUp(ck_val, dt = false)), UpdateContext({check_result: false}) )