class EVOLICITY_BOOLEAN_OR_EXPRESSION

(source code)

Description

Evolicity boolean or expression

note
	description: "Evolicity boolean or expression"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2018-09-20 11:35:15 GMT (Thursday 20th September 2018)"
	revision: "4"

class
	EVOLICITY_BOOLEAN_OR_EXPRESSION

inherit
	EVOLICITY_BOOLEAN_CONJUNCTION_EXPRESSION

create
	make

feature -- Basic operation

	evaluate (context: EVOLICITY_CONTEXT)
			--
		do
			is_true := false
			left.evaluate (context)
			if left.is_true then
				is_true := true
			else
				right.evaluate (context)
				if right.is_true then
					is_true := true
				end
			end
		end

end