@Override
	public ZemObject eval(Interpreter interpreter) {
		List<Node> statements = ((BlockNode)switchBlock).getStatements();
		ZemObject defaultValue = null;
		for (Node statement : statements) {
			if(statement instanceof CaseNode){
				//System.out.println("ohoho" + ((CaseNode)statement).getVar());
				ZemObject varSwitch = getVar().eval(interpreter);
				ZemObject valueCase = (((CaseNode)statement).getVar()).eval(interpreter);
				
				ZemBoolean bool = ZemBoolean.valueOf(varSwitch.equals(valueCase));
				if(bool.booleanValue()){
					return (((CaseNode)statement).getCaseBlock()).eval(interpreter);
				}
			}
			else if(statement instanceof DefaultSwitchNode){
				defaultValue = (((DefaultSwitchNode)statement).getDefaultBlock()).eval(interpreter);
			}
		}
		if(defaultValue != null){
			return defaultValue;
		}
		else{
			return null;
		}
	}