conditional assignment December 09, 2016 12:52PM |
Registered: 10 years ago Posts: 782 |
Re: conditional assignment December 09, 2016 04:54PM |
Registered: 10 years ago Posts: 590 |
function lookup(v,var,lar,i=0) = (var[ i ]==v) ? lar[ i ] : ( i < len ( var ) ? lookup( v, var, lar, i + 1 ) : -1); fanmount_dist = lookup(fan_width, [40,50,60,80], [32,40,02,70]);
Re: conditional assignment December 09, 2016 09:48PM |
Registered: 10 years ago Posts: 782 |
Re: conditional assignment December 10, 2016 02:30AM |
Registered: 10 years ago Posts: 590 |