Help - Search - Members - Calendar
Full Version: Foo_Text doesn't suport all tagZ?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
ditto_n
Hey everyone,
Is it just my coding or does foo_text not suport "true" tagZ? I tried to make it show Q7 instead of Insane for Mpc profile. I put this:

$if($stricmp(%__mpc_profile%,'Insane'),Q7)

and it didnt write anything. Maybe $stricmp can be added to foo_text, or maybe somone can write their own version of foo_text that uses tagZ?
foosion
foo_text does support TAGZ. However, your string checks whether the mpc_profile tech info field is equal to Insane, when you would want to check for 'Insane' (TagZ uses apostrophes to quote strings, which is needed when you want special characters in the output. 'Insane' in a format string is however the same as Insane).
To get an apostrophe in the output, you'll have to write two apostrophes. Thus, your string should be:

$if($stricmp(%__mpc_profile%,''Insane''),Q7)
ditto_n
Ah i guess i should have tried a script without quotes first.. gah.. O well.. Ty much foosion
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.