@c Created Sun Dec 13 12:05:46 2009 by ./../gri2texi from tst_control.gri.gri
@example
show "doc/tst_suite/tst_control.gri ..." ...

# If statements
@strong{@strong{if}} 0
    assert 0				" failed test 1"
end @strong{if}
@strong{@strong{if}} 1
@strong{@strong{else}}
    assert 0				" failed test 2"
end @strong{if}

# Loops.

# Loop with @strong{if} inside
.i. = 0
@strong{@strong{while}} @{rpn .i. 3 >@}
    .i. += 1
    @strong{if} 1
    @strong{else}
	assert 0			" failed test 3"
    end @strong{if}
end @strong{while}
assert @{rpn .i. 3 ==@}			" failed test 4"

# Loop inside @strong{if}
@strong{@strong{if}} 1
    .i. = 0
    @strong{while} @{rpn .i. 3 >@}
	.i. += 1
    end @strong{while}
    assert @{rpn .i. 3 ==@}		" failed test 5"
@strong{@strong{else}}
    assert 0				" failed test 6"
    .i. = 0
    @strong{while} @{rpn .i. 3 >@}
	.i. += 1
    end @strong{while}
    assert 0				" failed test 7"
end @strong{if}

# Nested loops
.i. = 0
@strong{@strong{while}} @{rpn .i. 2 >@}
    .j. = 0
    @strong{while} @{rpn .j. 4 >@}
	.j. += 1
    end @strong{while}
    .i. += 1
end @strong{while}
assert @{rpn .i. 2 ==@}			" failed test 8"
assert @{rpn .j. 4 ==@}			" failed test 9"

show " passed"
@end example
