Re: TIB: -Frank--1&2


[Prev][Next][Index][Thread]

Re: TIB: -Frank--1&2





-----Original Message-----
From: SWISH 97 <SWISH97@aol.com>
To: ti-basic@lists.ticalc.org <ti-basic@lists.ticalc.org>
Date: Saturday, January 17, 1998 4:21 PM
Subject: Re: TIB: -Frank--1&2


>
>In a message dated 98-01-17 03:04:48 EST, jody1 writes:
>
><< First of all, the negative balance. I'm not sure how your code is set
> up, but you're going to need something like this.
> :U-5->U
> :If U<0
> :Then
> :(whatever you want it to do if the balance is negative)
> :End >>
>
>I tried this and it doesn't work.  Maybe I misplaced it, if that is the
case
>were in the program should i put this code like before were the buy
something
>or after or whatever.  If that is not the case can someone tell me the real
>way to have a code were they can't buy something in the game if they dont
got
>the cash, thanx-Frank
>

try this
:If U-5 < 0            checks before it stores weather it will be negative
:Then
:Disp "You don't have enough money"
:Else                    if it wasn't negative
:U-5/->/U
:Disp "bla bla bla"
:End

This should work.  The only thing I am nit quite sure about on the 85 it the
Disp command.