Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Thread Tools Display Modes
Function wont nest inside if statements
Posts: n/a
Default Function wont nest inside if statements - 09-10-2008, 08:04 AM

Does anyone know of a workaround for this issue as I am unable to place a function within the if/then statement.
Im running Vista64 with 4gb ram
2.2 is unavailable to see if this will fix it so if someone has the file I would appreciate it if we could share it a little lol
I've tried emulation under xp sp2 and still no go
Reply With Quote
Functions in IF Statements
Posts: n/a
Default Functions in IF Statements - 09-10-2008, 12:52 PM

This is a bit tricky with Alice's drag and drop interface.

You first have to set up the IF statement with just true or false.

Then drag the functional test into the statement. The only functions this will work for are those which give true/false answers. (Amazing?? )

If the function you choose is what Alice calls a "boolean logic" function, you will have a straightforward choice of variables.

If, on the other hand, you choose a "math" function, you first have to set it up with numbers. You can then drag and drop variables of most types (maybe of all types - just haven't tried every one) as needed - making sure that the variables being compared are of the same type.

A very quick example is attached. Change the default values of the variables to verify for yourself that the IF statements are working.
Attached Files
File Type: a2w Functions for If Tests.a2w (216.8 KB, 116 views)
Reply With Quote

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.