Use of AND in an in-between Statement

Maybe there is a way to do this (I’m sure there is, just haven’t quite got it)
I have this little script:
$if($gte($truncate(%_bitrate%,3),128),$set(comment:Songs-DB_Preference,Fair copy))

Works great but I want to set a range somehow.
Example: Greater than “0” (zero) and less than “128”.

??

How about using the $and() statement, something like:

$if($and($gt(%_bitrate%,0),$lt(%_bitrate%,128)),$set(comment:Songs-DB_Preference,Fair copy))

There is more information in the User Guide.

2 Likes

Thanks. Ya I looked at that but couldn’t correlate it the C# methods. I’ll get this eventually :slight_smile:

We’re constantly looking for ways to improve the documentation, so if you have any suggestions for how they can be made clearer, I’d love to hear them.

2 Likes