Alan
11/19/2024, 12:53 PMjc
11/19/2024, 12:57 PMbooleanFormat( value )
jc
11/19/2024, 12:57 PMtrue
Alan
11/19/2024, 12:58 PMjc
11/19/2024, 12:59 PMjc
11/19/2024, 12:59 PM{your condition} ? true : false;
jc
11/19/2024, 1:00 PMvalue EQ "yes" ? true : false;
Alan
11/19/2024, 1:00 PMAlan
11/19/2024, 1:02 PMAlan
11/19/2024, 1:06 PMAlan
11/19/2024, 1:11 PMScott Bennett
11/19/2024, 1:16 PMAlan
11/19/2024, 1:24 PMIsBoolean(name)
which would return false, I wouldn't want false returnedAlan
11/19/2024, 1:25 PMScott Bennett
11/19/2024, 1:32 PMDave Merrill
11/19/2024, 2:15 PMjc
11/19/2024, 2:31 PMdeserializeJSON
function. In the end, when working with JSON, you should have a general idea of what you are receiving, expecting and/or supporting, so you build it into your logic. The extra step to make sure yes/no to true false is a pain and really might only be necessary based on what you want to do with that data. As @Dave Merrill stated CF treats yes/no as true/false, so if you are using this to update a DB record and you are passing the value as a query param for a bit field, or as an argument to a function expecting a boolean, it will work without an issue.Dave Merrill
11/19/2024, 2:57 PMAlan
11/19/2024, 2:58 PMMark Takata (Adobe)
11/19/2024, 10:04 PM