question

Shinya O avatar image
0 Likes"
Shinya O asked Matthew Gillespie commented

Flexscript Error about Decision Point pick option

Hi,

An error occurs if the value is "If" in the Set Label of the Decision Point pick option.

Originally, what kind of operation is it intended to set?

This also happens on FlexSim 2022.0.11.

Thanks in advance.

1691025539438.png

FlexSim 23.0.8
decision pointpick option
1691025539438.png (285.3 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Logan Gold avatar image
0 Likes"
Logan Gold answered Matthew Gillespie commented

This looks like a bug. I'm guessing the If picklist option should not be there. I'll let the developers know.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Shinya O avatar image Shinya O commented ·
Thank you for yoour information.
0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

@Shinya O This issue has been fixed in 23.0.11 and 23.2.1 released today.

The 'If' option was being added by an automated mechanism for adding all variable in the code header to the list of options. However it was incorrectly identifying a comment in the code as a variable.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Shinya O commented

Set a string in double quotation marks!

“if“ is a correct value

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Shinya O avatar image Shinya O commented ·

I understand that strings must be enclosed in double quotes. As in this example, it is not kind to set the default value and cause an error. If the pick option assigns a string, the default value should be a double-quoted string. But from the name "If" I can't imagine it being a pick option for assigning strings.

1 Like 1 ·
Joerg Vogel avatar image Joerg Vogel Shinya O commented ·
@Jason Lightfoot, please, can you check this list of suggested inputs for a label value field in Control Point On Arrival trigger. Thank you.
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Joerg Vogel commented ·

I see Logan has answered - it looks like this 'If' option was erroneously added in the 2021 version and exists in the options for both "set Label" and "set label and color".

Control Points have only had the option to add triggers in quick properties since 21.2 and they have never had a complete picklist that I can tell - only recently was Code Snippet added. Are you saying they should be added?

0 Likes 0 ·
Show more comments