Leave feedback
  • Question

    Question about rules (1178)

Enter a new topic
  • StreamServe Support StreamServe Support StreamServe Support Administrator
    0 likes 1562 views
    I have two processes in the Runtime Folder.

    One should only be printed for a certain "ftg"(that one has a unique invoice).

    I set a rule for that process: $ftg=800.

    But the other process should be printed for all other "ftg:s". I would like to write:

    if ($ftg=800)

    skip();

    on this process, but I have to set a rule. How do I do that without having to mention all ftg:s like

    $ftg=500

    $ftg=400

    and so on?

    Monday 11 January, 2010
  • Best Answer
    StreamServe Support StreamServe Support StreamServe Support Administrator
    0 likes
    It is not possible to use ordinary scripting in a rule, only logical expressions like NOT, AND or OR. If you do not want to print for ftg=800, you can type in:

    NOT $ftg=800

    To control the processes with variables, it is easier if you set a script under Platform-messages.

    For example:

    For process 1: $ftg=800; //Print only this invoice

    For process 2: if ($ftg=800)

    skip(); //Prints everything except 800.
    Monday 11 January, 2010