Topic: Ruby absolute beginner help.
I'm very sorry to bother you all with this basic of a question, but I can't seem to find any other place to ask...
Heres my code, all i'm trying to do is get the thing to give different messages based on the total value of an array.
if self < 6 then puts "Value small enough"
else puts "Error, array value too large"
#I'm trying to get it to handle an array in such a way that if the total value of the array is
#less than 6, it says "Value Small enough", or if it's larger "Error, array value too large"
a = [ 1, 2, 3]
Edit: Alternately, can you redirect me to a place where this question is approprite? Thank you.
Last edited by Meristat (2007-02-13 21:18:47)