Solved Interger.IsGreaterOrEqual
#1
So I have a list of songs I can use $Info[container(x).Total time]. And I get let's say 21:43

So I want to make thing clean and round up so in a var I have Interger.IsGreaterOrEqual(container (x).Total time,20)>21

But in stead it displays 47 which is the first line in the car interger.IsGreaterOrEqual(container (x).Total time,46)>47

Anyone have a idea why this total time is not being treated as a interger?

Or suggestion on another way to get this result... In the end I want see just mins no seconds.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#2
Because it's not 21.43 it's 21:43 (21 mins 43 seconds).
Reply
#3
So there isn't a easy was to round up unless I make a very very big duration string is equal too var?
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#4
I'm guessing you would need multiple conditions even for what you wanted originally, so why no use
Code:
String.StartsWith(Container(ID).TotalTime,20:)
String.StartsWith(Container(ID).TotalTime,21:)
String.StartsWith(Container(ID).TotalTime,22:)
etc.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#5
I made a very big var already hahaha...That would have e been easier.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply

Logout Mark Read Team Forum Stats Members Help
Interger.IsGreaterOrEqual0