jonman11
|
  |
| Joined: 30 Jan 2010 |
| Total Posts: 3386 |
|
|
| 18 Aug 2013 03:11 PM |
I have an if statement in a script, so how do I make the else do nothing?
Here's the line of code:
function checkForRaiders() if script.Parent.TermOwner.Value == "Raiders" == false then startCapCountdown() else end |
|
|
| Report Abuse |
|
|
blimp80
|
  |
| Joined: 22 May 2011 |
| Total Posts: 278 |
|
|
| 18 Aug 2013 03:13 PM |
| You're missing an "end" and put "return" under "else". |
|
|
| Report Abuse |
|
|
jonman11
|
  |
| Joined: 30 Jan 2010 |
| Total Posts: 3386 |
|
|
| 18 Aug 2013 03:14 PM |
| Is that how you do nothing? |
|
|
| Report Abuse |
|
|
blimp80
|
  |
| Joined: 22 May 2011 |
| Total Posts: 278 |
|
|
| 18 Aug 2013 03:15 PM |
| Pretty much, you could even have it print something in the output to check. |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2013 03:17 PM |
"if script.Parent.TermOwner.Value == "Raiders" == false then" If its equal to "Raiders" equal to false? Just put: "if script.Parent.TermOwner.Value ~= "Raiders" then" |
|
|
| Report Abuse |
|
|
bobulator
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 171 |
|
|
| 18 Aug 2013 03:49 PM |
jonman, you dont actually have to have the else, you can just have
if script.Parent.TermOwner.Value == "Raiders" == false then --do stuff end |
|
|
| Report Abuse |
|
|