View Single Post
Old 14th September 2018, 16:28   #5
ryerman
Major Dude
 
ryerman's Avatar
 
Join Date: Mar 2010
Location: Canada
Posts: 716
Please read the documentation again about $puts() and $get().
In my example, X is a variable name, not the string you are looking for.

if you're looking for X in %ARTIST%, try this:
code:
$puts(X,X)$ifgreater($strstr(%ARTIST%,$get(X)),0,$get(X),whatever you want when X is not found)

if %ARTIST% is X, you'll see X.
if %ARTIST% is abcdefX ghi, you'll see X.
if X is not in %ARTIST%, you'll see "whatever you want when X is not found"

Worry about the syntax error after you're satisfied this is what you want. (you missed the last closing bracket)

Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin
ryerman is offline   Reply With Quote