type.string.equal0.000001
Checks a string for equality.
Arguments
value
The value to compare to the given input.Return Value
true
if the string input is equal to the given value, otherwise false
.something went wrong :(
Checking a string for equality
Setup
authorization=PROCAUTH
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.string.equal.call(
"hello", value: "hello"
)
client.type.string.equal.call(
"hello", {value: "hello"}
);
curl "https://proc.run/type/string/equal" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/vnd.proc+json" \
--data '[[">>", ["%%", "hello"]], ["$$", "value", ["%%", "hello"]]]'
true
Stuck? Want to chat about an idea? Join the community on Discord.