我正在使用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/