toggle
Returns the given Boolean value negated. Extremely simple function mostly of use for code clarity.
- toggle(b)
- Returns the given Boolean value negated.
COPY- /// @func toggle(b)
- ///
- /// @desc Returns the given Boolean value negated.
- ///
- /// @param {bool} b Boolean value
- ///
- /// @return {bool} negated value
- ///
- /// GMLscripts.com/license
-
- function toggle(b)
- {
- return !b;
- }
Contributors: OpticalLiam
GitHub: View · Commits · Blame · Raw