Codetree Examples: If - Spicery/Nutmeg GitHub Wiki
Example 1
Nutmeg:
if x then "yes" else "no" endif
JSON:
{
"kind": "if",
"test": {
"kind": "id",
"name": "x"
},
"then":{
"kind": "string",
"value": "yes",
"reftype": "get"
},
"else": {
"kind": "string",
"value": "no"
}
}