In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Professorwiz wrote: One, update, If I comment out the lines with the nested if then statement it compiles fine.?! Start: 'DisplayTiming + change timing Do read dig_map + counter, segments If TimeButton = ispressed then do loop until TimeButton = isnotpressed Inc counter 'If counter = 10 then ' counter = 0 'ENDIF DELAY_MS 250 EndIf loop until StartButton = ispressed Do loop until StartButton = isnotpressed 'Don't start until button is released gosub calctime 'Calculate time between pictures gosub takepics 'Trigger the shutter at calcuated time gosub dispcount 'Display how many pictures where taken DELAY_MS 1000 goto start ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=211027#m211080 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)