Skip to content

Add filtrex example of detecting mod options#925

Open
rossjrw wants to merge 2 commits intoatampy25:mainfrom
rossjrw:update-filtrex-example
Open

Add filtrex example of detecting mod options#925
rossjrw wants to merge 2 commits intoatampy25:mainfrom
rossjrw:update-filtrex-example

Conversation

@rossjrw
Copy link

@rossjrw rossjrw commented Mar 1, 2026

Filtrex's of syntax (Y of X is syntactic sugar for X.Y) enables conditional options to detect complex mod option combinations which are otherwise impossible because modOptions["Username.ModName"] is not syntax that exists in filtrex, and modOptions.Username.ModName doesn't work for obvious reasons. But, this isn't at all obvious from the example in the docs - not to mention that the linked filtrex documentation is an abandoned repo that doesn't mention this syntax, and it isn't even the filtrex npm package that SMF uses.

This PR updates the filtrex expression docs link to point to the repo that provides the npm package, and adds an example of detecting mod option combinations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant