Skip to content

On Event tab Specific Lvar No action #74

Closed Answered by mpaperno
Mushupm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Philippe,

Could it be the .00 in the INI_MAP_MODE_CAPT_SWITCH values? So TP is trying to compare 1 with 1.00? I know mathematically that should work, but TP might be treating those values as strings, not numbers.

To get rid of the .00 in the value just remove the StringFormat = "F2" line from your requests. F2 tells it to format as a floating point number with 2 decimals. In this case the value is already an integer so no further formatting is needed.

Of course you could also test that theory by changing the comparison value in the IF statement to include the decimals, eg. 1.00, but ultimately getting rid of the special formatting would be better.

Since neither of the INI_MAP_MODE_* va…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mpaperno
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants