How can I check a property for a specific value??
IE: The JSONT version of
if(someProperty == someValue){
//Do some stuff
}
How can I check a property for a specific value??
IE: The JSONT version of
if(someProperty == someValue){
//Do some stuff
}
The control-of-flow syntax for if is:
But if you're looking to do if/equals then:
That said, it appears that JSONT is a forked language without an active community working on any particular implementation so the syntax will vary. In this case, I'm referring to Squarespace's implementation.