if-statement - 在舞台上定义 IFESLE

标签 if-statement arena-simulation

我正在使用Arena模拟软件。我需要在处理模块的表达式部分定义“if”。我找不到任何定义“ifelse”函数的指令。

最佳答案

我在竞技场模拟中从未找到过 IF 语句。

不过别担心。有使用表达式的解决方法。

根据官方文档:

Logical Expression Evaluation

ASSIGN: InventoryLevel = 50 * (SystemStatus==Early) + 30 * (SystemStatus==Late);

Assign InventoryLevel a value of 50 if the variable SystemStatus is equal to Early (logical expressions evaluate to 1 for TRUE, 0 for FALSE). If SystemStatus equals Late, assign InventoryLevel to 30. If neither is true, assign SystemStatus equal to 0. This single ASSIGN block may have been used to replace a BRANCH block (to check the value of SystemStatus) and two ASSIGN blocks (to assign the correct value).

关于if-statement - 在舞台上定义 IFESLE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43570092/

相关文章:

sql oracle in() 子句

r - 日期上的嵌套 If 语句

swift - swift 中 == true 和 != false 之间有区别吗?

mysql - #1064 使用 case for rand() 创建过程时出现语法错误

r - 在 R 中使用 if else 为 for 语句的每次迭代保存值