Ralf M. wrote:
> Just a follow up-question:
> How can I conditionally execute such a construct:
> <p>content of record<$ currentPos $>:<$ myVector[currentPos] $></p>
>
> For example in pseudo-code ("int format" is a session var):
>
> if (format == 1)
> <p>Using format 1: content of record<$ currentPos $>:<$
> myVector[currentPos] $></p>
> else if (format == 2)
> <p>Using format 2: content of record<$ currentPos $>:<$
> myVector[currentPos] $></p>
> else
> <p>Using default format: content of record<$ currentPos $>:<$
> myVector[currentPos] $></p>
>
> Is something like that possible to do?
Ok, solved:
% if (format == 1) {
<p>using format 1: content of record <$ currentPos $>: <$
myVector[currentPos] $></p>
% } else if (format == 2) {
<p>using format 2: content of record <$ currentPos $>: <$
myVector[currentPos] $></p>
% } else {
<p>using default format: content of record <$ currentPos $>: <$
myVector[currentPos] $></p>
% }
------------------------------------------------------------------------------
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general