Skip to content

Commit

Permalink
updated to use GetAsBoolean
Browse files Browse the repository at this point in the history
  • Loading branch information
petrowsky committed Dec 31, 2009
1 parent 3f8a38c commit 1bd0ed7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boolean.toggle.fmfn
Expand Up @@ -2,7 +2,7 @@
* =====================================================================
* boolean.toggle ( number )
*
* RETURNS: (number) Switches between zero and one
* RETURNS: (bool) True or False based on contents of value
*
* DEPENDENCIES: None
* AUTHOR: Matt Petrowsky
Expand All @@ -11,4 +11,6 @@
* =====================================================================
*/

Abs( number - 1 )
not GetAsBoolean ( value )

// Special thanks to Rob Poelking for the suggestion

0 comments on commit 1bd0ed7

Please sign in to comment.