Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Conditional Statements
Old
HoffmanFarmsTx
Junior Member
 
Status: Offline
Posts: 8
Join Date: Jun 2015
Default Conditional Statements - 06-19-2015, 01:33 PM

Was either easier than expected or because I struggled through the Einstein formula assignment I am getting better.

I created a method in my object, but not sure I really needed to. I think I could have created the statement in the world first method with the same result.
   
Reply With Quote
It Depends on Scope
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default It Depends on Scope - 06-19-2015, 03:53 PM

If the new method is restricted to the specific Object and makes no reference to either the World or other objects, then it could be put into the object with no problem.
If you want to save the new object into your custom objects folder and use it another world, but it contains methods with references to other objects in the current world, then those methods will cause problems unless the other objects are also loaded.

Quote:
Originally Posted by HoffmanFarmsTx View Post
Was either easier than expected or because I struggled through the Einstein formula assignment I am getting better.

I created a method in my object, but not sure I really needed to. I think I could have created the statement in the world first method with the same result.
   
Reply With Quote
Old
cmachua
Junior Member
 
Status: Offline
Posts: 12
Join Date: Jun 2015
Default 06-22-2015, 10:21 PM

I think with our assignment, either way will work and I agree that the Einstein formula lab helped quite a bit with this assignment. The course is really getting more into programming and Alice is making it so much easier to grasp programming.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.