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!
Highlighting Leader...
 
Notifications
Clear all

[Solved] Highlighting Leaderboard's fastest lap

2 Posts
1 Users
0 Reactions
4,589 Views
(@mb55)
Active Member
Joined: 5 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.



   
Quote
(@mb55)
Active Member
Joined: 5 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')

 



   
ReplyQuote
Share:
📄 Terms & Conditions | 📑 Privacy Policy