• skip to content

Doomsday Manual

User Tools

  • Admin
  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
Trace:

script_return_value

Search

You can find the results of your search below.

Ends with
  • Exact match
  • Starts with
  • Ends with
  • Contains
@script:walkthrough
  • Any namespace
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Fulltext results:

operator_expressions
15 Hits, Last modified: 6 years ago
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
15 Hits, Last modified: 6 years ago
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
9 Hits, Last modified: 6 years ago
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
6 Hits, Last modified: 6 years ago
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

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Rename Page
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki
  • Doomsday Engine
  • 2.3 ⇣
  • Builds
  • Add-ons
  • Manual
  • ·
  • Forums
  • Support
  • Bug Tracker
  • Blog