This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| script:walkthrough:misc [2019-11-21 05:39] – ↷ Page name changed from script:walkthrough:script_return_value to script:walkthrough:misc skyjake | script:walkthrough:miscellaneous [2019-11-21 05:39] (current) – ↷ Page name changed from script:walkthrough:misc to script:walkthrough:miscellaneous skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <- Scopes ^ ^ -> | ||
| + | |||
| + | ====== Miscellaneous ====== | ||
| + | |||
| + | ===== Script return value ===== | ||
| + | |||
| + | In certain circumstances, | ||
| + | |||
| + | The script return value is the final evaluated expression of the script. | ||
| + | |||
| + | if True | ||
| + | "I am the return value." | ||
| + | else | ||
| + | "I could be, too." | ||
| + | end | ||
| + | |||
| + | |||