[{"data":1,"prerenderedAt":188},["ShallowReactive",2],{"help-article-\u002Fhelp\u002Fexpressions-and-logic\u002Fexpression-syntax":3},{"id":4,"title":5,"body":6,"category":176,"description":177,"extension":178,"keywords":179,"meta":180,"navigation":181,"order":182,"path":183,"seo":184,"stem":185,"updated":186,"__hash__":187},"help\u002Fhelp\u002Fexpressions-and-logic\u002Fexpression-syntax.md","Expression syntax (simple)",{"type":7,"value":8,"toc":173},"minimark",[9,13,20,50,56,84,90,128,139,146,162],[10,11,12],"p",{},"An expression is built from a few simple pieces. Once you know them, you can read and write most expressions by hand.",[10,14,15,19],{},[16,17,18],"strong",{},"Values"," are the raw data:",[21,22,23,35,41],"ul",{},[24,25,26,27,31,32],"li",{},"Numbers: ",[28,29,30],"code",{},"20",", ",[28,33,34],{},"3.5",[24,36,37,38],{},"Text, wrapped in backticks: ",[28,39,40],{},"`Hello`",[24,42,43,44,31,47],{},"True or false: ",[28,45,46],{},"true",[28,48,49],{},"false",[10,51,52,55],{},[16,53,54],{},"References"," pull in values from elsewhere in your template:",[21,57,58,70],{},[24,59,60,61,66,67],{},"An input field's value, by its ",[62,63,65],"a",{"href":64},"\u002Fhelp\u002Fexpressions-and-logic\u002Fvariables","variable name",": ",[28,68,69],{},"headline",[24,71,72,73,77,78,66,81],{},"Another element's ",[62,74,76],{"href":75},"\u002Fhelp\u002Fexpressions-and-logic\u002Felement-metadata-subproperties","measurement",", written as ",[28,79,80],{},"element.property",[28,82,83],{},"text1.bottom",[10,85,86,89],{},[16,87,88],{},"Operators"," combine values:",[21,91,92,107],{},[24,93,94,95,31,98,31,101,31,104],{},"Maths: ",[28,96,97],{},"+",[28,99,100],{},"-",[28,102,103],{},"*",[28,105,106],{},"\u002F",[24,108,109,110,31,113,31,116,31,119,31,122,31,125],{},"Comparisons, which result in true or false: ",[28,111,112],{},"==",[28,114,115],{},"!=",[28,117,118],{},">",[28,120,121],{},"\u003C",[28,123,124],{},">=",[28,126,127],{},"\u003C=",[10,129,130,131,134,135,138],{},"So ",[28,132,133],{},"text1.bottom + 20"," means \"20 below the bottom of text1\", and ",[28,136,137],{},"price * 1.19"," adds 19% tax to a number.",[10,140,141],{},[142,143],"img",{"alt":144,"src":145},"","https:\u002F\u002Fimagedelivery.net\u002FmudX-CmAqIANL8bxoNCToA\u002Fb947ecca-e2aa-44c7-d06e-cb5ab8e5c100\u002Fmax",[10,147,148,154,155,31,158,161],{},[16,149,150],{},[62,151,153],{"href":152},"\u002Fhelp\u002Fexpressions-and-logic\u002Ffunctions","Functions"," do more involved work. They are written in capitals with their inputs in brackets, and you can nest them: ",[28,156,157],{},"ROUND(price)",[28,159,160],{},"ADD(text1.width, 40)",".",[10,163,164,165,168,169,172],{},"To drop a value into running text, use ",[28,166,167],{},"${ }"," inside backticks: ",[28,170,171],{},"`Total: ${price} EUR`"," produces \"Total: 20 EUR\".",{"title":144,"searchDepth":174,"depth":174,"links":175},2,[],"expressions-and-logic","Learn the basic building blocks of an expression: values, references, and operators.","md",[],{},true,20,"\u002Fhelp\u002Fexpressions-and-logic\u002Fexpression-syntax",{"title":5,"description":177},"help\u002Fexpressions-and-logic\u002Fexpression-syntax","2026-06-16","3lYu7IqYKIXtvrzAdSs5MFNrZ5pWKIxtIeeY09vyru4",1787923687867]