miniSql

创建
zgc123@gmail.com authored at 11/19/2023 1:40:15 AM
460.00 B
Sample - Advanced Looping.txt.mt
## The following script demonstraits the advanced looping abilities using foreach.

#foreach ($row in ${Data.Get(null, "Categories").Rows})
#beforeall

	I am before everything
	
#before
		>>> (before each item)
#each
			"${Host.Data.ColumnValue($row, "Category Name")}"
#after
		<<< (after each item)
#between
	(i am between each line)
#odd
	[I am an odd row...]
#even
	[I am an even row]
#nodata
	(I appear if theres no data)
#afterall

	I am last.
	
#end