I have 2 ideas

[if more {p0} 1]
[if* more {p0} '4']info.eznote.{p1}{p4}[if*]
[if* equal {p0} '4']info.eznote.{p1}{p3}[if*]
[if* equal {p0} '3']info.eznote.{p1}{p2}[if*]
[if* equal {p0} '2']info.eznote.{p1}{p1}[if*]
[else]
info.eznote.{p1}{p1}
[if]

I think that works.

The idea below doesn't work, but maybe someone else has clue.  Anyway
the below is just future ideas.
Instead of all ifs, maybe one statement like:
  info.eznote.{p1}{p{p0}}    //this should work but doesn't???
or
  info.eznote.{p1}{p[(math {p0} - 1)]}  //just future idea

john

On Feb 8, 4:35 am, Linly <[email protected]> wrote:
> Hi all,
>
> I need to put a "if" condition in a form session line. I know the "if"
> syntax in a form is different from in a normal page. But I don't know
> how to write it right.
>
> For example, I need to change the {page} value in different
> conditions:
>
> [session info "field='{=target}' value='ezNote' target='info.eznote.
> {p1}{page}'"]
>
> something like,
>
> ===========================
> [session ....... target='
>
> [if]
> [if* more {p0} 5]info.eznote.{p1}{p4}[if*]
> [if* more {p0} 4]info.eznote.{p1}{p3}[if*]
> [if* more {p0} 3]info.eznote.{p1}{p2}[if*]
> [else]
> info.eznote.{p1}{p1}
> [if]
>
> '"]
> ===========================
>
> How to transform this nested condition into the session syntax? Please
> advice. Thanks.
>
> Cheers,
> linly
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to