Loading...

Function blocks for complex logic

Besides a simple expression, you may also use a Javascript function block in an expression (enclosed in {{ and }} or alternatively {% and %} ) for complex logic, the followings are the samples:

Sample: Addition of 2 numeric values

{% (()=>{    
	let first = 1;    
	let second = 2;    
	return first+second ;  
})()%}