Jump to content

Not my first Script


Recommended Posts

Posted
On 7/6/2018 at 7:36 PM, m3JS said:

Great feedback and thank you for the suggestions! My goal is to create bigger and more complex scripts but to also put forth my efforts back to the community. I have tried to go back to not using States and enums as I am fairly new to Java and don't understand fully why to use enums over not using them. I think I need to go back and do some basic Java to better understand everything. I used the tutorials @Chris made and scanned through a lot of snippets and other forum posts. As for the widget, I was thinking about that this morning, I am gonna do some separate tests off script to practice.

 

You are welcome! And I would like to mention you are well under your way. Remember that an enum is just a way to store data, just like a string. You could make a string array of 'states' and use that in the same mechanism as well.

For widgets I only check if they are null and that works for me.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...