# x-3(x<=0) question

leeying shared this problem 2 months ago
Not a Problem

When inputting x-3(x<=0), it displays two branches. What does the formula mean? I wanted it displayed the left branch, that is , when x<=0, displays the "x-3,(x<=0)" function.

What does the formula x-3(x<=0) mean (no comma)?

And tell you the truth, the problem was discovered by a student of mine, Ma Zhicheng.

## Comments (6) 1

`(x<=0)`
is either true (1) or false (0) so

```x-3(x<=0)
```

is either x-0 or x-3. You can try these two syntaxes:

```(x-3)(x<=0)
```

`x-3,x<=0` 1

Where does x-0 come from?

And I know what x-3,(x<=0) means. It indicates that when x<=0, y=x-3. 1

`x-3(x<=0) `

means

`x-3 * (x<=0) ` 1

Now I see. Thank you.  1

f(x):=x - 3 If[x<=0, 1, 0]

Files: if.ggb 1

Yes, I see. Thank you very much. Leave a Comment
• 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
© 2019 International GeoGebra Institute