Fulltext results:
- operator_expressions
- polation. The right-hand argument can be a single value or an array of values. $ print '%s with "%3i" ... e.ext' path = /some/path/filename.ext ===== Subscript ===== The subscript operator ''[]'' works on arrays and strings to extract elements/characters. $ tr... ray. $ print transports[-1] bicycles The subscript operator is also used to access dictionaries by k
- miscellaneous
- Scopes ^ ^ -> ====== Miscellaneous ====== ===== Script return value ===== In certain circumstances, it is useful to return a value from the entire script itself, and not just from a function. For example, the argument to ''eval()'' is a script whose return value is returned to the caller. The script return value is the final evaluated expression of the script. if True
- basic_expressions
- e ''eval()'' function evaluates its argument as a script and returns the return value from it. The script gets runs in the same namespace where ''eval()'' was called. $ a = eval(""" 'arg'
- records
- s ====== Records are the foundation of Doomsday Script. Each namespace and module is a record, each obje... y still be referenced by variables in scripts. A script variable may own a record, or simply reference on... t-in functions ''members()'' and ''subrecords()'' return dictionaries containing the corresponding members... created or changed using ''[]''. However, the key value still has to be a text string that contains no pe