sniper422
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 1711 |
|
|
| 14 Jun 2012 02:25 PM |
I'm just trying out new ideas, as I'm rather new at scripting. Can you point out if its just one thing, or if it just can't work?
e = 55 b = e + 5 print(b)
if (b) = 60 then print(Woo!) |
|
|
| Report Abuse |
|
|
sniper422
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 1711 |
|
|
| 14 Jun 2012 02:26 PM |
| I get an error of Workspace.Brick.Script:5: 'then' expected near '=', in the output. |
|
|
| Report Abuse |
|
|
CrasyTrex
|
  |
| Joined: 13 Mar 2011 |
| Total Posts: 761 |
|
|
| 14 Jun 2012 02:27 PM |
| When you are doing that you need to use two == signs. and an end if you forgot one |
|
|
| Report Abuse |
|
|
sniper422
|
  |
| Joined: 10 Jun 2009 |
| Total Posts: 1711 |
|
| |
|
|
| 14 Jun 2012 03:10 PM |
Here you go...
e = 55 b = e + 5 print(b)
if (b) == 60 then print("Woo!") end
works like a charm!
Diamonds + Sticks = Diamond Stick! |
|
|
| Report Abuse |
|
|