Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
false
12 34
7/23/2007 1:28:00 AM
I guess I don't understand the concept of false. I wanted to set flag in
my script manually. At first I
flag = true
and all was well. later I ran a test
if flag
But when I set the flag to false (flag=false), the script doesn't work
correctly. If test before the "if flag" don't evaluate correctly.
Work around is easy enough, just use a string or number for the
variable.
But I think I'm missing something fundamental here. As you may have
already guessed, I don't have a programming background.
Thanks
--
Posted via
http://www.ruby-...
.
3 Answers
12 34
7/23/2007 1:32:00 AM
0
I think something else is going on. Even if I use a string, the script
doesn't work with my equivalent of false. I need to recheck the logic.
--
Posted via
http://www.ruby-...
.
Cliff Rowley
7/23/2007 1:45:00 AM
0
12 34 wrote:
> I think something else is going on. Even if I use a string, the script
> doesn't work with my equivalent of false. I need to recheck the logic.
>
What's your code?
12 34
7/26/2007 12:28:00 AM
0
Cliff Rowley wrote:
> 12 34 wrote:
>> I think something else is going on. Even if I use a string, the script
>> doesn't work with my equivalent of false. I need to recheck the logic.
>>
> What's your code?
What had happened was that things that were supposed to happen in the
script weren't because my memory card was off line. (The first responded
didn't see my CORRECTION, and he was correct in assuming something else
was wrong). Being new to Ruby I was surprised that the missing card
(which needed to be read) didn't cause an error. After the first posting
I simplified the problem and realized it wasn't the false that was
causing the problem. Later I sorted out what was really going on.
Thanks for responding.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
false
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password