Highlighting Leader...
 
Notifications
Clear all

[Solved] Highlighting Leaderboard's fastest lap

2 Posts
1 Users
0 Reactions
2,245 Views
(@mb55)
Active Member
Joined: 3 years ago
Posts: 11
Topic starter  

I haven’t been able to find an example where a formula within a Leaderboard repeating row references the current row’s data rather than referencing the row number explicitly.

What I’m trying to accomplish: if the current row’s best lap time is the same as the session’s best lap time then color the row's best lap time text purple otherwise color it white.

This topic was modified 3 years ago 2 times by TBS_66

   
Quote
(@mb55)
Active Member
Joined: 3 years ago
Posts: 11
Topic starter  

SOLVED:

With the help of @romainrob "RSC - iRacing Extra Properties" plugin:

if(prop('IRacingExtraProperties.iRacing_Leaderboard_Driver_' + format((repeatindex()-1),'00') + '_BestLapTime')= [DataCorePlugin.GameData.NewData.BestLapOpponent.BestLapTime], '#FFFF00FF', '#FFFFFFFF')

 

This post was modified 3 years ago 4 times by TBS_66

   
ReplyQuote
Share: