PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Expand]Guide for PANTHEON
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Expand]User Manual for PANTHEON
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 375.0099 ms
"
  6613 | 1 | |
Label


Using Conditional Statements in Formulas

Using Conditional Statements in Formulas

Using Conditional Statements in Formulas

010379.gif010380.gif010381.gif010411.gif010382.gif010383.gif

Formulas can contain conditional statements with the basic syntax 'if A is true, then B'. Such statements are enclosed in square brackets.

[condition:value] - if condition is true, the value is returned.

Conditional statements can be grouped:

[condition1:value1] [condition2:value2] [condition3:value3] value4

The above formula is parsed in the following way:

  • if condition1 is true, the result is value1, else
    • if condition2 is true, the result is value2, else
      • if condition3 is true, the result is value3, else
        • the result is value4 (if none of the above is true)

 

Examples:

#MPCENA# * 0.75 multiply the retail price by 0.75
#PRFAKTOR# * #PRURE# multiply factor from report with corresponding reported hours
[#KOL# > 100:#MPCENA#*0.8] #MPCENA# if quantity is greater than 100, the price equals MPCENA - 20%. But, if the condition is not met (that is, of quantity is less or equal to 100), the price equals MPCENA.

 

000001.gif To use the operators 'less than or equal to' and 'greater than or equal to' (not directly available in PANTHEON), use two conditional statements!

Example:

If A is greater than or equal to B, return 0, else return 1.

would be expressed as

[A>B:0] [A=B:0] 1

 


  

     


Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!