Properties
Similar Topics
Statistics
Comments
3
Participants
3
Subscribers
4
Votes
4
Views
871
Share
Eager vs lazy GeoGebraskript operators 'and' and 'or'
Answered
From what I can see, the '&&' (and '/\') in GeoGebrascripts appear to be implemented as 'eager' (both sides of the expressions are evaluated before the 'and' statement is evaluated). If this is correct, is there a lazy 'and'operator available? I have a suspicion that the 'and'statements are the main reason the GeoGebraobjects I'm working with are loading relatively slowly.
Similarly, I'm in need of a lazy 'or'operator.
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2021 International GeoGebra Institute
Sorry, no. If you post your file we may be able to help
The question is if you can make GGB skip a calculation. If you have a boolean:
a==1 && b==bigCalculation
And a = 2, then it is not necessary to make the bigCalculation.
Is it possible to make it:
If(a==1, b==bigCalculation, false)
will geogebra then skip the bigCalculation if a=2? Or any other way to skip this calculation
?
Sorry, no.
Comments have been locked on this page!