A first start in 4DScript--4DScript中的第一个开始.docVIP

  • 1
  • 0
  • 约1.96万字
  • 约 17页
  • 2019-06-19 发布于浙江
  • 举报

A first start in 4DScript--4DScript中的第一个开始.doc

PAGE PAGE 1 DATE \@ M/d/yyyy 6/19/2019 A first start in 4DScript 4DScript is the programming language of Enterprise Dynamics. Everything that is executed in Enterprise Dynamics is or can be done via 4DScript. This document provides for beginners the structure of 4DScript and a list of often used commands, illustrated with examples. We start with the syntax rules together with the mathematical and logical operators. The second part consists of the most common commands in ED. In the third part the concept of referencing is illustrated with examples. The basic structure of 4DScript The basic syntax of 4DScript is simple and is valid at any position where you can write 4DScript: the language contains a number of words (commands); these 4DScript commands can have (up to 255) parameters; the parameters are placed between parenthesis ( ); parameters can be values, strings(字符串) or expressions(表达式) (other 4DScript words) parameters are always separated by commas; if a parameter should be interpreted as a string, the string parameters are always placed between square brackets [ ]. If the parameter should be executed as 4DScript code, the parameter is written in a normal fashion; comments can be placed between squiggly brackets { }. These rules apply everywhere and are always valid. However, for some statements these rules do not result in a very readable code. In order to make parts of the code easier to understand for others, the 4DScript syntax makes an exception in some cases. This applies in particular to mathematical and logical symbols. A list of important 4DScript words, some of which we explain later in this document. All words can be found in the Help Overview in the Help menu. Mathematical operations: +, -, /, *, Min, Max, Mod Logical operations: , , =, =, ,(不等于) And, Or Probability distributions: NegExp, Uniform, DUniform, Normal(正太分布), Bernoulli Miscellaneous 4DScript words: Do Time: Time, Mins, Hr Conditional statements: If, Case Referencing: First, L

文档评论(0)

1亿VIP精品文档

相关文档