Change color of Las...
 
Notifications
Clear all

Change color of Last Lap as it relates to Previous and Best

2 Posts
2 Users
1 Reactions
1,565 Views
 DND
(@dnd)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

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

   
Quote
(@aronrodrigues1)
New Member
Joined: 3 years ago
Posts: 1
 

Try using RGB or HEX codes for the colors.


   
DND reacted
ReplyQuote
Share: