Forum
Calc Builder Support
Calc Builder supportForums
Public write access is disabled. Please login
Re: run 2 ot more code 09.01.2018 18:46
Hi,
you can introduce conditional expressions at your code, let's say your field variable is
country
and you have different values at your option 'value' field, for ex
USA
Germany
Spain
at the code you can run different calculations using 'if' structure:
if($country=="USA"){
//this section of code will only be used if country=USA
}
if($country=="Spain"){
//this section of code will only be used if country=Spain
}
..etc
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
you can introduce conditional expressions at your code, let's say your field variable is
country
and you have different values at your option 'value' field, for ex
USA
Germany
Spain
at the code you can run different calculations using 'if' structure:
if($country=="USA"){
//this section of code will only be used if country=USA
}
if($country=="Spain"){
//this section of code will only be used if country=Spain
}
..etc
Hope this helps, regards
Moonsoft Team
www.moonsoft.es