This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
script:walkthrough:script_return_value [2019-11-21 05:38] – [Other use cases] 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 | ||
+ | |||
+ | |||