module ElasticityGrammar::LogicCond1
Public Instance Methods
Source
# File lib/opennebula/flow/grammar.rb, line 324 def result(role, vm_pool) l_val, l_st = left.result(role, vm_pool) r_val, r_st = right.result(role, vm_pool) st = "#{l_st} #{comp_op.text_value} #{r_st}" if l_val.nil? || r_val.nil? # An attribute was not found, we return false instead # of assuming a value of 0 val = false else val = comp_op.apply(l_val, r_val) end return [val, st] end