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

Targeted variables are not recognized as variable_field #10

Closed
malashin opened this issue Jan 15, 2019 · 2 comments
Closed

Targeted variables are not recognized as variable_field #10

malashin opened this issue Jan 15, 2019 · 2 comments

Comments

@malashin
Copy link
Collaborator

Numbers or variables work fine, target variables with @ character in them don't.

num_units_on_climate@cold_climate
avg_units_acclimation@cold_climate

cwtools_targeted_variables

### Compares a variable to a number or variable
## scope = any
alias[trigger:check_variable] = {
	variable_field = variable_field
}
### Compares a variable to a number or variable
## scope = any
alias[trigger:check_variable] = {
	var = value[variable]
	value = variable_field
	compare = less_than
	compare = less_than_or_equals
	compare = greater_than
	compare = greater_than_or_equals
	compare = equals
	compare = not_equals
}
@tboby
Copy link
Member

tboby commented Jan 16, 2019

Yeah, looks like a bug in variable_field checking. Currently I have a very simple way of handling this: I just throw away everything after the @. Later I'll be smarter about it.

image
Works

image
Doesn't.

I'll look into it.

@tboby
Copy link
Member

tboby commented Nov 2, 2019

This should now be resolved (although perhaps a few bugs to iron out)

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

2 participants