This screenshot shows an If action, with its Condition set to [[ $page.variables.layoutFlag == true ]] in the Properties pane. The true branch and the false branch each contain an Assign Variables action with layoutFlag variable set to true and false.