SimHub Functions

DND

Stay Safe, Healthy and be Kind - Stop Hate
Post here if you need help, or can provide it, to write functions within SimHub.
I'll start.
Goal:
Leaderboard last lap time will change color based on previous and best lap. 'A' would be my personal lap time and is what the formula is based on.

I created a formula in Excel I know works, I just need help in how to make it work in ncalc for SimHub
=IFS(LAST LAP=PREVIOUS LAP,"Yellow",LAST LAP<BEST LAP,"Purple",LAST LAP>PREVIOUS LAP,"Red",LAST LAP<PREVIOUS LAP,"Green")

I have tried this:
if([CurrentLapTime]<[BestLapTime],PURPLE,if([CurrentLapTime]<[LastLapTime],Green,if([CurrentLapTime]>[LastLapTime],Red,Yellow)))

And this:
if([CurrentLapTime]<[BestLapTime],PURPLE,[CurrentLapTime]<[LastLapTime],Green,[CurrentLapTime]>[LastLapTime],Red,Yellow)

Not having much luck with either so some help is required, please.
1618681233963.png
 
Last edited:

Latest News

To join the OverTake Racing Club races I want them to be: (multiple choice)

  • Free to access

    Votes: 183 87.6%
  • Better structured events

    Votes: 34 16.3%
  • Better structured racing club forum

    Votes: 28 13.4%
  • More use of default game content

    Votes: 29 13.9%
  • More use of fixed setups

    Votes: 59 28.2%
  • No 3rd party registration pages

    Votes: 73 34.9%
  • Less casual events

    Votes: 17 8.1%
  • More casual events

    Votes: 70 33.5%
  • Other, specify in thread

    Votes: 12 5.7%
Back
Top