• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Some general macro writing quiestions - arrays / comparing different variables

Rooster

Well-known member
Joined
Jan 2, 2014
RedCents
1,611¢
First, Is there a way to ${If[1>${String},TRUE,FALSE]} ? All i really want to know is if ${String} is in fact a number , so it just needs to be any value. Or is there a way to type cast my variable from string to int to avoid unparsable and the type cast just makes it zero?


Second, the macro itself is using an array where it pulls a number of sections from the ini and 4 keys from each.. so a simple 2 dimensional array with [X ,4] elements where X is how many sections the user created or wants to create for the ini, how big an array is too big (the macro itself is very small ) I would prefer to do some HDD reads less by using a large array for most information, there will still be information pulled from the ini on each main loop iteration as it progresses? where each loop is for every X ultimately
 
Will

Rich (BB code):
${Int[${Me.Name}]}

produce a 0 or a >0 number if there are numeric chars in the string as in your name (gse7en) or will any non numeric in the string produce a 0?

Thanks.
 
Thanks , I'll have a play with what I have tomorrow night probably.

Will be sharing the macro when finished, I don't want to share something that could be non user friendly and also poor use of arrays if I let it be too large.
 
Question - Some general macro writing quiestions - arrays / comparing different variables

Users who are viewing this thread

Back
Top
Cart