Having trouble in a custom template with a YN field. MSSQL
I will not have any UNDEFINED value. But I want to print something ONLY when True.
Cannot seem to find the correct way to check for this "true" value.
Have tried:
# if( data["yOEMLoanerYN"] == true ) { #
Loaner
# } #
# if( data["yOEMLoanerYN"] === true ) { #
Loaner
# } #
# if( data["yOEMLoanerYN"] == 1 ) { #
Loaner
# } #
# if( data["yOEMLoanerYN"] === 1 ) { #
Loaner
# } #
# if( data["yOEMLoanerYN"] === 'true' ) { #
Loaner
# } #
# if( $(yOEMLoanerYN).data == true ) { #
Loaner
# } #
This will not pass Syntax checker
# if( yOEMLoanerYN.data == true) { #
Loaner
#} #
This correctly works for null vs. not-null.
# if( data["yOEMLoanerYN"]) { #
Loaner
# } #
Custom Query template issue with Boolean field
Custom Query template issue with Boolean field
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Custom Query template issue with Boolean field
Hi Jaymer.
Pretty sure its 'Yes' and 'No'.
Let me know!
Pretty sure its 'Yes' and 'No'.
Let me know!