search for: savehours

Displaying 1 result from an estimated 1 matches for "savehours".

2006 Jul 26
2
return values from a function - basic question
I thought this would be simple, but I just cant seem to get it to work. # only allow numbers. Need to check for nil / NAN def saveHours(val) if val < 0 val = 0 end return val end current_item.product.v1 = checkValue(values[:val1]) current_item.product.v2 = checkValue(values[:val2]) but when I run the code, nothing is ever returned from the checkValue function. If I remove the function call and just ha...