#!/usr/bin/env bash

# Infix op: symbol-based, returns bool.

@operation.condition.eq() {
    @symbol '=='
    @in.string left
    @in.string right
    @out.bool result

    @do() {
        local left
        local right

        left=$(@in left)
        right=$(@in right)

        if [[ "$left" = "$right" ]]; then
            @out.bool result true
        else
            @out.bool result false
        fi

        @return.out
    }
}
