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

ConditionTagDefinition #72

Open
PaulGrimshaw opened this issue Dec 14, 2016 · 2 comments
Open

ConditionTagDefinition #72

PaulGrimshaw opened this issue Dec 14, 2016 · 2 comments

Comments

@PaulGrimshaw
Copy link

PaulGrimshaw commented Dec 14, 2016

Could we make this class public? It is a useful one to be able to inherit from and add as a custom tag (have tested successfully)

@oscaruribe
Copy link

I've done my own #compare (like #if but with operators).

#compare @index 'eq' 0 // Will be true if current index EQuals 0
#compare @index 'ne' 0 // Will be true if current index is Not Equal to 0
#compare @index 'factor' 2 // Will be true if current index is evenly divided by 2
#compare @index 'gt' 0 // Will be true if current index greater than 0
#compare @index 'ge' 1 // Will be true if current index greater than or equal to 1
#compare @index 'lt' 10 // Will be true if current index less than 10
#compare @index 'le' 9 // Will be true if current index less than or equal to 9

Only had to reproduce a minimal amount of code from ConditionTag into it but I agree. If I could have inherited ConditionTagDefinition it'd be cleaner.

@ranaadeel0300
Copy link

Can u please give me a complete example , how you create ur own #compare tag. i also need to do this type of work.

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

No branches or pull requests

3 participants