Re: help?

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
function minmax(atom pMin, atom pMax, atom pVal)  
    if pVal > pMax then 
        return pMax 
    end if 
 
    if pVal < pMin then 
        return pMin 
    end if 
 
    return pVal 
end function  
  
for i = 5 to 120 by 20 do 
	? {i, minmax(7.2,99,i) } 
end for 

ah, yes, much easier to understand.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu