i'm guessing on PBP IF-THEN. so what about
Code:Dist_To_Print var word SYSTEM @Print_Distance macro arg @ MOVE?WW arg, Dist_To_Print @ if Dist_To_Print < 200 lcdout " " @ endif @ if Dist_To_Print < 20 lcdout " " @ endif lcdout #(dist_to_print / 2), ".", dec1 ((Dist_To_Print // 2) * 5), "cm" @ endm
Bookmarks