Properties
Category
English
Due On
2021-03-01
Statistics
Comments
3
Participants
3
Subscribers
3
Votes
1
Views
283
Share
Answered
Using the "If" command for writing scripts is producing strange errors. After defining a point A and slider for n, the example copied from the Manual
If(Mod(n, 7) == 0, SetCoords(A, n, 0), SetCoords(A, n, 1))
also produces an error. Am I doing something wrong?
Thanks for the help!
- 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
© 2023 International GeoGebra Institute
It should be this way round:
If that doesn't help, please post your .ggb fileWhat error message? What version of Geogebra?
I have just tried this same example, copying and pasting your command directly, and it worked fine for me:
Where are you placing the If instruction?
Hi pisquared -- Thank you for posting your screenshot. That cleared up the problem. Defining A = Point({21, 0}) instead of A=(21, 0) produced the error. I thought Point objects needed to be defined in terms of bracketed lists.
Comments have been locked on this page!