| This is read-only version of the old wiki, feel free to browse it for materials. If you want to share your own materials, please use GeoGebraTube instead. You are also welcome to help us enhance the new wiki. If any questions arise, please contact the webmaster. |
If Command
Syntax
- If[condition C, object A]
- If[condition C, object A, object B]
Action
Yields a copy of object a if the condition evaluates to true, and a copy of object b if it evaluates to false. If B is not set and C evaluates to false, the output is an undefined object.
Example If[x(A)>y(A),(1,2),(2,1)]
Notes
Objects A and B must be of the same type.
See also