Skip to main content

Toggle

An expression editor function that returns the opposite value of a boolean.

Updated yesterday

Overview

This function returns the inverse of a boolean variable or boolean property. If the input is true, it returns false, and vice versa.


Parameters

toggle(#variable)

Variable

The boolean variable or property to toggle.


For example...

toggle(#isVisible)

Returns false if isVisible is true, or true if isVisible is false.

Did this answer your question?