virables in function vs real numbers
-
Hi,
i have a question around variable vs hard code numbers in a function
this function is working just fine:
if (($budget > "4000" ) && ($freqncy <= "2" || $rdrftlvl <= "2" || $rdrtchskl <= "2")) { $adjbdgt = $budget * "0.75"; } else { $adjbdgt = $budget; }
however when I change the hard code numbers to variables as follow:
// adjust budget if budget is above min-budget-limit and the user select low frequency or low fitness or low thecnical if (($budget > $mnbdgtlmt) && ($freqncy <= $minval || $rdrftlvl <= $minval || $rdrtchskl <= $minval)) { $adjbdgt = $budget * $prcntg; } else { $adjbdgt = $budget; }
its not working. what am I missing here?
Thanks,David
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘virables in function vs real numbers’ is closed to new replies.