RegExp conditional option help - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: RegExp conditional option help (/showthread.php?tid=44627) |
RegExp conditional option help - acaranta - 2009-01-29 Hi I'd like to know if is is possible to test 2 booleans in a conditional statement .. for example : Code: <RegExp conditional="testA & !testB"> That would be nice I can't find help on this anywhere ... or ... i didn't search thoroughly - spiff - 2009-01-30 well, no. i didn't add boolean expression parsing as this is easily done elsewise. <regexp conditional="testA" blabla dest="5"> <expression>somestuff</expression> </regexp> <regexp conditional="!testB" input="$$5" output="\1" dest="4"> <expression>(.+)</expression> </regexp> see, if either arent fulfilled no joy in buffer 4 - acaranta - 2009-01-30 hehe actually, while asking I tried something which looks like what you showed : Code: <RegExp conditional="!testA"> And this seems to fit nicely my need ... Anyway, thanks ! |