Tinderbox v10 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.