if (HR. isin %tvshow) { /write $shortfn $mircdirTXT\Dupes\dupelog.txt) %tvshow | /write $shortfn($mircdirTXT\Dupes\tvlog.txt) %tvshow | /echoall $me >>> New°>> US.Scripted.HR.HDTV.XviD->> %tvshow First Sighted on >> $+ %source $+ < }
elseif (720p isin %tvshow) { /write $shortfn($mircdirTXT\Dupes\dupelog.txt) %tvshow | /write $shortfn($mircdirTXT\Dupes\tvlog.txt) %tvshow | /echoall $me >>> New°>> US.Scripted.720p.HDTV.XviD->> %tvshow First Sighted on >> $+ %source $+ < }
else { /write $shortfn($mircdirTXT\Dupes\dupelog.txt) %tvshow | /write $shortfn($mircdirTXT\Dupes\tvlog.txt) %tvshow | /echoall $me >>> New°>> US.Scripted.HDTV.XviD->> %tvshow First Sighted on >> $+ %source $+ < }
}
You could code this more like:
if (HR. isin %tvshow) { set %HDTV.tvlog HR. | HDTVWrite | unset %HDTV.tvlog }
elseif (720p isin %tvshow) { set %HDTV.tvlog 720p | HDTVWrite | unset %HDTV.tvlog }
else { /write $shortfn($mircdirTXT\Dupes\dupelog.txt) %tvshow | /write $shortfn($mircdirTXT\Dupes\tvlog.txt) %tvshow | /echoall $me >>> New°>> US.Scripted.HDTV.XviD->> %tvshow First Sighted on >> $+ %source $+ < }
}
Alias HDTVWrite { write $shortfn $mircdirTXT\Dupes\dupelog.txt) %tvshow | /write $shortfn($mircdirTXT\Dupes\tvlog.txt) %tvshow | /echoall $me >>> New°>> US.Scripted.$+ %HDTV.tvlog $+ HDTV.XviD->> %tvshow First Sighted on >> $+ %source $+ <
halt
}
An alias to do all the /write business, and shorter if, elseif statements