This version is out of date, covering development from v9.5.0 to v9.7.3. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

Curly brackets: defining code blocks

Action code operators that generates loops and branches enclose such section of code in { } brackets. Examples are below:

Conditional

	if($Text.contains("Project"){
		// code if query evaluates true
	}else{
		// code if query evaluates false
	};

Loops

	$MyList.each(aPath){
		create(aPath);
	};

Note that inside a loop, the loop variable—here aPath—only holds a value within the loop code enclosed by the { }. For each iteration of the loop, the value of aPath is the value of the item in the source list. So, for the first loop aPath is the value of first item of $MyList.