Jump to content
Server Maintenance This Week. ×

Six Fried RiCE ?


imoree

This topic is 4521 days old. Please don't post here. Open a new topic instead.

Recommended Posts

anyone know what happened to their blog or is it that they just havent updated it sinCe Last year September?

thank u.

-i

I am trying to figure out what the "999999999999999" is doing here in this partial script please:




top = getValue( " & variableName & " ; 1 );

   " & variableName & " = middlevalues( " & variableName & " ; 2 ; 999999999999999 )];



OR is it just as a placeholder?

Edited by imoree
Link to comment
Share on other sites

I am trying to figure out what the "999999999999999" is doing

It's an example of bad coding practice.

MiddleValues ( listOfValues ; 2 ; 999999999999999 )




will return the same thing as:




MiddleValues ( listOfValues ; 2 ; ValueCount ( listOfValues ) )




as long as listOfValues contains less than 999999999999999 values. While it's extremely unlikely that a list would exceed such a high number, the code introduces an unnecessary arbitrary - and therefore confusing - constant. The real objective here is to get all the values in the list except the first one - and the best way to achieve it is is to say exactly that:




RightValues ( listOfValues ; ValueCount ( listOfValues ) - 1 )

  • Like 1
Link to comment
Share on other sites

This topic is 4521 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.