User Tools

Site Tools


twine1:function

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

twine1:function [2017/08/19 20:03]
videlais
twine1:function [2017/10/09 20:39]
Line 1: Line 1:
-<- [[expression|About Expressions]] --------- [[print|Printing Variables and Functions]] -> 
- 
-===== Functions ===== 
- 
-When writing code in your stories, functions are special devices that can be used in [[expression|expressions]] in place of variables or values. 
- 
-Syntactically,​ they consist of: 
-  * a name, which is subject to the same rules that [[variable]] names are under, 
-  * followed by a ''​(''​ left bracket, 
-  * followed by zero or more other [[expression]]s separated by commas, 
-  * followed by a ''​)''​ right bracket. 
- 
-Technically speaking, any Javascript built-in function is available to the Twine author: ''​parseInt()'',​ ''​JSON.stringify()'',​ ''​document.createElement()''​ and all the rest are accessible, as are any functions that have been added by [[script]]s. 
- 
  
twine1/function.txt ยท Last modified: 2017/10/09 20:39 (external edit)