Sessiontimeleft or ...
 
Notifications
Clear all

Sessiontimeleft or Remaining laps

4 Posts
2 Users
0 Likes
236 Views
(@636pau)
Eminent Member
Joined: 2 years ago
Posts: 11
Topic starter  

Hello,

My goal is to create something like: =IF([DataCorePlugin.GameData.NewData.SessionTimeLeft] = "00:00:00", [RemainingLaps], [DataCorePlugin. GameData. NewData. SessionTimeLeft])

If the Session time left value is 00:00:00 show the property remaining laps, in other any case show the property SessionTimeLeft

Could you provide me some other alternative?

Thanks!!!!


   
Quote
Topic Tags
(@crowtheshaman)
Active Member
Joined: 3 months ago
Posts: 3
 

did you get it working? its probably IF([DataCorePlugin.GameData.NewData.SessionTimeLeft] == "00:00:00", [RemainingLaps], [DataCorePlugin. GameData. NewData. SessionTimeLeft])

or whatever the datatype is on SessionTimeLeft, should work if it doesnt show errors below


   
ReplyQuote
(@636pau)
Eminent Member
Joined: 2 years ago
Posts: 11
Topic starter  

@crowtheshaman Hello,

It shows the following output:

Expression error:line 1:57 no viable alternative at character '"' 

Thanks anyway for the help


   
ReplyQuote
(@crowtheshaman)
Active Member
Joined: 3 months ago
Posts: 3
 

IF(timespantoseconds([DataCorePlugin.GameData.SessionTimeLeft]) == 0, [RemainingLaps], [DataCorePlugin.GameData.SessionTimeLeft])

 

seems to work


   
ReplyQuote
Share: