判断真假

当high=low时 判断真为high【1】否则 假为high[2] 这段策略怎么写

if(high == low){a = high[1];}else {a = high[2];}