EqualsString.js 503 Bytes
Newer Older
wangcong committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/**
 * 字符串比较函数
 * @author fengjiansheng
 * @date 2021-12-10
 */
export default {
    execute: function () {
        console.log("s1 SubString")
        if (arguments && arguments[0] && arguments[0].length >= 2 && arguments[0].length <= 2 && arguments[1]) {
            let a = arguments[0][0].getResult().Value
            let b = arguments[0][1].getResult().Value
            return a === b
        }
    },
    getResultType: function () {
        return FMR.ConstDataTypes.Bool
    }
}