Passing a string into function as a expression

Thank you.
That works!

Furthermore, if we have F(condition::String, object::AType) and the specific format of condition is unknow, such as "object.someAttribute%10 == 0", can we still have a solution?

In fact, all I want is to provide a interface to customize the condition of a function to perform. That is

function F(condition::String, object::AType)
    if ConcertToCode(condition)
        Perform()
    end
end
F("object.someAttribute % 10 == 0", object)

Is there any good way to do it? If not using string as condition, what else way can be elegant to do this?