It is currently May 5th, 2024, 9:30 pm

A substitute question

Get help with creating, editing & fixing problems with skins
mikedigitize
Posts: 8
Joined: January 15th, 2012, 7:22 am

A substitute question

Post by mikedigitize »

Is there a way to substitute an interval f.ex:
Substitute="1,2,3":"Blue","0":"Red" or
Substitute="1","2","3":"Blue","0":"Red"

/Mike
User avatar
Brian
Developer
Posts: 2689
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: A substitute question

Post by Brian »

You could use RegExpSubstitute.

Like this:

Code: Select all

RegExpSubstitute=1
Substitute="[1-3]":"Blue","0":"Red"
or without regular expressions, like this:

Code: Select all

Substitute="3":"Blue","2":"Blue","1":"Blue","0":"Red"
-Brian
mikedigitize
Posts: 8
Joined: January 15th, 2012, 7:22 am

Re: A substitute question

Post by mikedigitize »

Great, thanks Brian! How aboute < , > = ?
User avatar
Brian
Developer
Posts: 2689
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: A substitute question

Post by Brian »

Code: Select all

Substitute=">":"?","<":"?"
I assume you meant change greater than and less than to a question mark.

Here is some more information on Substitute.

-Brian
mikedigitize
Posts: 8
Joined: January 15th, 2012, 7:22 am

Re: A substitute question

Post by mikedigitize »

Yes.. sorry.
I greatful for your help,
/Mike