Properties
Similar Topics
Statistics
Comments
1
Participants
2
Subscribers
0
Votes
2
Views
857
Share
If command problem
Answered
I have variable "c" and varibale "a". In "a" I have geogebra script.
If[a == 1000, SetValue[c, c=c+100], SetValue[c, c=c100]]
It doesn't work.
 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
© 2020 International GeoGebra Institute
You can't use adssignments inside a command. The correct syntax is
If[a == 1000, SetValue[c, c+100], SetValue[c, c100]]
or
SetValue[c, c + If[a == 1000, 100, 100]]
Comments have been locked on this page!