| View previous topic :: View next topic |
| Author |
Message |
hightekvagabond
Joined: 30 Mar 2009 Posts: 3
|
Posted: Wed Jul 08, 2009 8:48 am Post subject: Transition from 1.59 to 1.9x |
|
|
| Is there a document somewhere that tells you all the stuff to look for as you transition from 1.59 to 1.9x? |
|
| Back to top |
|
 |
hightekvagabond
Joined: 30 Mar 2009 Posts: 3
|
Posted: Wed Jul 08, 2009 9:49 am Post subject: examples |
|
|
For example, I have found thus far that if you have multiple actions in an action you need to be sure there is no white space in front of the #
#action {blah} {#action {foo} {dance};#action {bar} {smile}}
not
#action {blah} {#action {foo} {dance}; #action {bar} {smile}}
and when doing if statements to check a variable you need to quote them now:
#if {"$varname"<1} {smile}
not
#if {$varname<1} {smile}
Those two thigns alone have caused massive editing to my very long rc file.....
And I'm still having problems with actions that are too deeply nested, it seems if you nest them deep enough they still don't interpret even if you take out the white space. |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Wed Jul 08, 2009 10:01 am Post subject: |
|
|
The issue with spaces should have been fixed in version 1.99.6.
You should only use " " for strings, so:
#if {"$var" == "hello"} {smile}
or
#if {$var == 2} {smile}
Comparing a string to an integer will always result in the string being 0, so that'd be pretty pointless.
When nesting actions make sure to use %%1 instead of %1 for the 2nd nest, %%%1 for the 3rd nest, etc. That is, for each nested action/alias, not for each pair of braces. (I think wintin 95 does this.)
There's a list with things to look for in the README file that might be helpful.
I don't think there's a problem with high nesting levels, you can try using: #debug all on, to see what's going on nesting wise at run time. |
|
| Back to top |
|
 |
|