Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top Stat check (from library) is not working #1288

Open
Sethz opened this issue Sep 11, 2022 · 1 comment
Open

Top Stat check (from library) is not working #1288

Sethz opened this issue Sep 11, 2022 · 1 comment
Labels

Comments

@Sethz
Copy link

Sethz commented Sep 11, 2022

Extractor
library
Hi there,

so I set up the rule for checking if there is a specific top stat already in the library - and there is - but it seems not to check that because it will always name the lower stats for the new added dino.

{{#if: isTopHP | HP{hp} }}
{{#if: isTopST | ST{st} }}
{{#if: isTopDM | DMG{dm} }}
{{#if: isTopWE | WE{we} }}

Screenshots attached

@Sethz Sethz changed the title Top Stat check (from libnrary) is not working Top Stat check (from library) is not working Sep 11, 2022
@cadon
Copy link
Owner

cadon commented Sep 11, 2022

Hi,
the isTophp itself should be used as a keyword, you use it as literal text. The if function only checks if a string is not empty, and your stated literal string is never empty. The pattern you're looking for is something like this:

{{#if: {isTophp} | HP{hp} }} 
{{#if: {isTopst} | ST{st} }} 
{{#if: {isTopdm} | DMG{dm} }} 
{{#if: {isTopwe} | WE{we} }}

@cadon cadon added the question label Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants