|Newbie questions about Pliant
variable keywords (meta)
Can we substitue variables as a pliant command?
|Message posted by maybe Bryan on 2002/06/04 23:08:06
|I want to make dynamic control statements. I was reading the meta programming
section but I'm not sure on how to proceed to accomplish this.
Consider the statement:
if a < b
What if I don't know before hand what the operator should be? Can I write
something like (consider the following as psuedo-code):
select "operator" (var Str op)
option ">" ">"
option "<" "<"
option "=" "="
if a op b
Or if we wanted to get a little wild:
control a op b