►FR◄ Ability to comment out a line in rules

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

►FR◄ Ability to comment out a line in rules

Post by BenHayat »

@ SUPPORT;

It would be VERY helpful if we could add "Comments" in the rule section and also be able to "Comment out" and rule line. Lots of times during development and testing, I need to comment out a line or two for testing.

Any line (or part of a line) that starts with "//" should be ignored by rule engine.
Thank you in advance!
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: ►FR◄ Ability to comment out a line in rules

Post by weblike »

+1 very useful. Instead of deleting a line/rule we could activate/deactivate.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: ►FR◄ Ability to comment out a line in rules

Post by BenHayat »

weblike wrote:+1 very useful. Instead of deleting a line/rule we could activate/deactivate.
We are in 2016 and in 1976 (40 years ago), I was able to have comment lines, in my Fortran, Cobol, RPG, Basic, and assembly programs. :D :mrgreen:
mrbdrm
Posts: 349
Joined: Tue Oct 16, 2012 11:44 am

Re: ►FR◄ Ability to comment out a line in rules

Post by mrbdrm »

This will be very handy in testing
pbrad
Posts: 781
Joined: Mon Jul 17, 2006 11:03 pm
Location: Ontario, Canada

Re: ►FR◄ Ability to comment out a line in rules

Post by pbrad »

Just put in a condition that will never be met like 0=1
Pete Bradstreet
Contract developer of commercialized applications

AwareIM Ver. 8.2
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: ►FR◄ Ability to comment out a line in rules

Post by BenHayat »

pbrad wrote:Just put in a condition that will never be met like 0=1
Rules are not always conditional. and sometimes there are multiple lines of actions to disable and enable during testing. Getting around it, wasn't my question/request in this post.
pbrad
Posts: 781
Joined: Mon Jul 17, 2006 11:03 pm
Location: Ontario, Canada

Re: ►FR◄ Ability to comment out a line in rules

Post by pbrad »

Rules always have the option to apply a condition and adding a condition of 0=1 effectively rems out any rule and will rem out a rule or process no matter how many lines of actions there are in it.. I have been doing it for 10 years quite successfully but thank you for clarifying for me why you posted your thread and why my response was inappropriate. Perhaps there are users that are not as senior as you that might benefit from my advice however.
Pete Bradstreet
Contract developer of commercialized applications

AwareIM Ver. 8.2
customaware
Posts: 2400
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: ►FR◄ Ability to comment out a line in rules

Post by customaware »

I would like to be able to disable (not delete) any Action(s) but have the Rule itself still execute.

Also, to be able to have a Comment Action row would be really helpful at times.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
pbrad
Posts: 781
Joined: Mon Jul 17, 2006 11:03 pm
Location: Ontario, Canada

Re: ►FR◄ Ability to comment out a line in rules

Post by pbrad »

Agreed.
Cheers,
Pete
Pete Bradstreet
Contract developer of commercialized applications

AwareIM Ver. 8.2
hpl123
Posts: 2594
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: ►FR◄ Ability to comment out a line in rules

Post by hpl123 »

1+
Henrik (V8 Developer Ed. - Windows)
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: ►FR◄ Ability to comment out a line in rules

Post by tford »

I would like to be able to disable (not delete) any Action(s) but have the Rule itself still execute.
And if this feature is added, it would be very helpful to search and find all places where "disable" is used.
Tom - V8.8 build 3137 - MySql / PostGres
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: ►FR◄ Ability to comment out a line in rules

Post by BenHayat »

tford wrote:
I would like to be able to disable (not delete) any Action(s) but have the Rule itself still execute.
And if this feature is added, it would be very helpful to search and find all places where "disable" is used.
My original request was to be able to comment out a single line or multiple lines.
The word "disable" triggers a better idea or feature adding to the code editor to "disable" a section of code not to execute, and then be able to search "disabled" codes as Tom suggested.

This is a real needed feature during testing and diagnosing problems.
Post Reply