Skips a part of the page content between [goto name] and [label name].
- [goto name if]
- [label name]
||The name set in the corresponding [label] marker.
||Allow the redirection to be dependent on the outcome of a logical test.
Example where the "if" condition is true:
[goto name=foo if=1]
Example where the "if" condition is false:
[goto name=bar if=0]
Skips the part of the page content between the [goto name]
tag and the [label name] marker.
The correspondingly named [label] marks the part of the
page to which the [goto] tag should skip.
Note that the [label] marker is not an end tag,
but simply a marker for the end of the text to skip.
If no correspondingly named [label] exists on the page,
or you don't provide a "name" parameter,
then all of the text from the [goto] to the end of the file
will be skipped.
If you are using [goto] in a page file then you must ensure
that each of your [goto] tags has a correspondingly
named [label] tag.
If you are not careful then your page template/layout will suffer,
your page might not display at all.
Skipping to the end of a file due to a blank/mismatched
"name" is perfectly acceptable for use in non-page files,
such as "etc/log_transaction", as long as you intended for
this to happen.
Again, be very careful when skipping blocks of code with [goto]
and [label] tags.
Skipping container end tags with [goto] is likely to break your page.
This should match the name set in a [label] marker.
The [label] marker must appear after the [goto]
tag to prevent loops.
Condition for [goto].
If the argument to "if" is true then the tag will skip the
text between the [goto] and the [label].
For example, because of the false "if" parameter value,
the following [goto] will not cause the ICML parser
to a skip to the corresponding [label]
[goto name="foobar" if="[scratch go]"]
Body text (not skipped).