Hello,
{{$forumId = 0; $topicId = 0;}}
{{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'forums'}}
{{$forumId = \IPS\Request::i()->id;}}
{{elseif \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}}
{{$topicId = \IPS\Request::i()->id; try { $topic = \IPS\forums\Topic::loadAndCheckPerms(\IPS\Request::i()->id); $forumId = $topic->forum_id; } catch(\Exception $e) {};}}
{{endif}}
{{if in_array($forumId, array('a','b','c')) or in_array($topicId, array('d','e','f'))}}
Code1
{{else}}
code 2
{{endif}}