Tag Archives: parameter

How to Use Parameters in Alice 2

ALice lets you create methods that use parameters. So , let’s look at how you can create and use them

 

Step 1 ) In an object’s method, click the “create parameter” button

create-parameter-button-alice

Step 2 ) Inside the method editor, use that parameter.  This often involves writing a loop , possibly something along the lines of the code below:

use-the-paramet-somehow

Step 3) Now you can call the method from another place like the world.myfirstmethod

call-the-the-method-from-another-place

 

 

You can even use an “object” as a parameter in Alice

 

via GIPHY