Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to temporarily comment out a line in a program (for easier testing) ?

Featured Replies

Posted

Its common practice to comment out code when testing, but I can't find an easy way to do this? Currently I have to copy a program and then delete lines....but thats very slow as once deleted I have to copy again. Any help would be appreciated, thanks

Solved by EJones01

Go to solution
3 hours ago, EJones01 said:

Its common practice to comment out code when testing, but I can't find an easy way to do this? Currently I have to copy a program and then delete lines....but thats very slow as once deleted I have to copy again. Any help would be appreciated, thanks

There is no way to comment out commands in a program.

Best you can do is duplicate the program, make changes you want to test and then disable the original program.

  • Author

Any chance this can be added in the future? I did see this requested a few years ago and think it would be a welcome addition.

Another option, which I use, is to add a comment where the line should go and either type the line in, or a short reminder of what should be there.

This helps me during final 'tweaking' which I'm doing that now on several programs

First, I agree, a simple way to comment out line(s) of code would be nice, but I have used the following method with success.

Check out the last comment in this thread:

 

  • Author
  • Solution
1 hour ago, RRalston said:

First, I agree, a simple way to comment out line(s) of code would be nice, but I have used the following method with success.

Check out the last comment in this thread:

 

OK...so

 

Repeat 0 times  - stops the next lines running 
Repeat 1 times  -  and this starts running lines after this

OK...so
 
Repeat 0 times  - stops the next lines running 
Repeat 1 times  -  and this starts running lines after this
No. Repeat 0 times will execute it once anyway. That syntax is messed up.

Replace the line with WAIT 0 SECONDS.

Sent from my SM-G781W using Tapatalk

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.