| Blockland Forums > Modification Help |
| return; |
| (1/3) > >> |
| soba:
Could someone explain to me exactly what return; does? I thought maybe it just went back up to the beginning of the function and went down but the script I am using has it twice, in the same function, so now I'm confused does the second return; possibly go up to the first return;, and then go down? |
| Demian:
From what I remember working with Java it ends the current function without doing anything. |
| soba:
--- Quote from: Demian on October 27, 2011, 05:36:44 AM ---From what I remember working with Java it ends the current function without doing anything. --- End quote --- don't understand :c |
| Demian:
In Torque Script it appears to be sort of "ignore me and move on" type of thing. |
| soba:
--- Quote from: Demian on October 27, 2011, 05:44:52 AM ---In Torque Script it appears to be sort of "ignore me and move on" type of thing. --- End quote --- I think I get it if(%player.Admin $= "1"); return; The return is triggered if the player has the variable Admin, and it equals 1? , stopping any further functionality after it? can someone confirm this for me? |
| Navigation |
| Message Index |
| Next page |