hi every one, I am a new user of FlexSim. In process flow, I want to compare two variables and depend on the conditions like greater or less and then to write boolean value (true or false)(1 or 0) to global table how should I do?
hi every one, I am a new user of FlexSim. In process flow, I want to compare two variables and depend on the conditions like greater or less and then to write boolean value (true or false)(1 or 0) to global table how should I do?
You can write to a global table using the Table API. After adding a global table in the toolbox you would use code like the following:
Table("GlobalTable1")[1][1] = variable1 > variable2 ? 1 : 0;
You can do this by using a custom code activity in process flow as shown in the picture below, or using the line of code below.
Table("GlobalTable1")[row][column] = 1
8 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved