#pragma TextEncoding = "UTF-8" #pragma rtGlobals=3 // Use modern global access method and strict wave access #pragma DefaultTab={3,20,4} // Set default tab width in Igor Pro 9 and later Function testfunc() variable div = unit == 1 ? 1 : (unit == 2 ? 72 : 72/2.54) variable step = unit == 1 ? 1 : (unit == 2 ? 0.014 : 0.036) End