Due to increasing spam attacks, forum registrations are currently paused to keep our community safe and spam-free. Come hang out and stay connected with us on the SimHub Discord: https://discord.com/invite/nBBMuX7!
Catch you on Discord — and thanks for understanding!
Catch you on Discord — and thanks for understanding!
Notifications
Clear all
Simhub
2
Posts
2
Users
1
Reactions
1,877
Views
Topic starter
20/04/2021 2: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