Short conditions in IFs |
Share this topic: |
if (ls_calc_method = n_calc_method.ADDITIVE and lb_additive_calculation_passed) or (ls_calc_method = n_calc_method.RATIO and lb_ratio_calculation_passed) then...
if ((calcMethod == CalcMethods.Additive && additiveCalculationPassed) || (calcMethod == CalcMethods.Ratio && ratioCalculationPassed))...
lb_structural_change_occurred = &
(ls_calc_method = n_calc_method.ADDITIVE and lb_additive_calculation_passed) or &
(ls_calc_method = n_calc_method.RATIO and lb_ratio_calculation_passed)
if lb_structural_change_occurred then...
bool structuralChangeOccurred;
structuralChangeOccurred =
(calcMethod == CalcMethods.Additive && additiveCalculationPassed) ||
(calcMethod == CalcMethods.Ratio && ratioCalculationPassed);
if (structuralChangeOccurred)...
boolean lb_the_show_must_go_on
lb_the_show_must_go_on = false
choose case true
case [cond1], [cond2]
lb_the_show_must_go_on = true
case [cond3] and [cond4]
lb_the_show_must_go_on = this.uf_xxx()
case [cond3]
lb_the_show_must_go_on = this.uf_yyy()
end choose
if lb_the_show_must_go_on then...
bool theShowMustGoOn;
theShowMustGoOn = false;
if ([cond1]||[cond2])
{
theShowMustGoOn = true;
}
elseif ([cond3]&&[cond4])
{
theShowMustGoOn = this.isXxx();
}
elseif ([cond3])
{
theShowMustGoOn = this.isYyy();
}
if (theShowMustGoOn)...
Return to Intriguing World of Logic
Users browsing this forum: No registered users and 1 guest
Short conditions in IFs |
Share this topic: |