Notifications
Clear all
Simhub
2
Posts
2
Users
1
Reactions
1,565
Views
Topic starter
20/04/2021 1:53 am
Trying to use the IF command to write a function for the color of Last Lap determined on the Previous and Best Laps.
Last Lap Time = Previous Lap Time then color is YELLOW
Last Lap Time < Best Lap Time then color is PURPLE
Last Lap Time < Previous Lap Time and is > Best Lap Time then color is GREEN
Last Lap Time > Previous Lap Time then color is RED
I was thinking this would work if it would stop after it found a TRUE statement, but not sure how to assign color.
if([LastLapTime]<[PersistantTrackerPlugin.SessionBest],PURPLE,[LastLapTime]>[PersistantTrackerPlugin.PreviousLap_00],RED,[LastLapTime]<[PersistantTrackerPlugin.PreviousLap_00],GREEN)
This topic was modified 4 years ago by DND