Dave W wrote:
No, I get it. I just thought that there might have been some built in
function like if(neg_num($quant - $amount))
or something like that. I know how to do it, but I thought that there
might
have been an alternate method. Just because I asked a simple question
doesn't mean I'm stup
On 17 July 2006 01:07, Dave W wrote:
> No, I get it. I just thought that there might have been some built in
> function like if(neg_num($quant - $amount))
> or something like that. I know how to do it, but I thought
> that there might
> have been an alternate method. Just because I asked a simple
No, I get it. I just thought that there might have been some built in
function like if(neg_num($quant - $amount))
or something like that. I know how to do it, but I thought that there might
have been an alternate method. Just because I asked a simple question
doesn't mean I'm stupid, I'm just curi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave W wrote:
> Currently I have this:
>
> if($quant > $amount) {echo "You don't have that many!"; }
>
> $quant is the user inputted amount and $amount is the amount that they
> actually have. Is there any way of checking if the result is negative
>
They are both positive numbers. I want to see if, when subtract, do they
equal a negative number?
On 7/16/06, Peter Beckman <[EMAIL PROTECTED]> wrote:
On Sun, 16 Jul 2006, Dave W wrote:
> Currently I have this:
>
> if($quant > $amount) {echo "You don't have that many!"; }
>
> $quant is the use
On Sun, 16 Jul 2006, Dave W wrote:
Currently I have this:
if($quant > $amount) {echo "You don't have that many!"; }
$quant is the user inputted amount and $amount is the amount that they
actually have. Is there any way of checking if the result is negative rather
than doing what I have above?
Currently I have this:
if($quant > $amount) {echo "You don't have that many!"; }
$quant is the user inputted amount and $amount is the amount that they
actually have. Is there any way of checking if the result is negative rather
than doing what I have above?
--
Dave W