PANTHEON™ Help

 Toc
 PANTHEON Ndihmë - Mirësevini
[Collapse]PANTHEON
 [Collapse]Udhëzues për PANTHEON
  [Expand]Udhëzues për PANTHEON
  [Expand]Udhëzues për PANTHEON Retail
  [Expand]Udhëzues për PANTHEON Vet
  [Expand]Udhëzues për PANTHEON Bujqësi
 [Collapse]Manualet e Përdoruesit për PANTHEON
  [Expand]Manuali i Përdoruesit për PANTHEON
  [Expand]Manuali i Përdoruesit për PANTHEON Retail
  [Expand]Manuali i përdoruesit për PANTHEON Vet
  [Expand]Manuali i Përdoruesit për Bujqësinë PANTHEON
[Collapse]PANTHEON Web
 [Collapse]Udhëzues për PANTHEON Web
  [Expand]Udhëzues për PANTHEON Web Light
  [Expand]Udhëzues për Terminalin Web PANTHEON
  [Expand]Udhëzues për PANTHEON Web Legal
  [Expand]Arkiva e produkteve të vjetra
 [Collapse]Manualet e Përdoruesit për PANTHEON Web
  [Expand]Fillimi PANTHEON Web
  [Expand]Manuali i Përdoruesit për PANTHEON Web Light
  [Expand]Manuali i Përdoruesit për Terminalin Web PANTHEON
  [Expand]Manuali i Përdoruesit për PANTHEON Web Legal
  [Expand]Arkiva e produkteve të vjetra
[Collapse]PANTHEON Granulat
 [Collapse]Udhëzues për Granulat PANTHEON
  [Expand]Granula e Personelit
  [Expand]Urdhërat e Udhëtimit Granule
  [Expand]Dokumente dhe Detyra Granule
  [Expand]Dashboard Granule
  [Expand]Porositë B2B Granule
  [Expand]Granul i Shërbimit në Terren
  [Expand]Inventari i Aseteve të Paluajtshme
  [Expand]Inventari i Magazinës Granul
 [Collapse]Manualet e Përdoruesit për Granulat PANTHEON
  [Expand]Fillimi
  [Expand]Granula e Personelit
  [Expand]Urdhërat e Udhëtimit Granule
  [Expand]Dokumentet dhe Granula e Detyrave
  [Expand]Porositë B2B Granule
  [Expand]Dashboard Granule
  [Expand]Granul i Shërbimit në Terren
  [Expand]Inventari i Aseteve të Paluajtshme
  [Expand]Inventari i Magazinës Granul
  [Expand]Arkiv
[Expand]Faqja e Përdoruesit

Load Time: 703.1367 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!