Skip to content

Using functions instead of values for verification #3

Description

@BeastyBlacksmith

I think it would be strictly more versatile if you could pass a function to the Question object and then it checks whether it returns true or false.

For example with that in the define x=10 question you could check

function (mod::Module = Main)
	isdefined(mod, :x) && x == 10
end

So you would pass only when x=10 and not when y=10.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions