Skip to content
Wheatwizard edited this page Apr 18, 2018 · 11 revisions

Each of these comparisons takes values off the stack and leaves either a 1 or a 0 on the stack. For shorter versions of these that don't meet these requirements see the section at the bottom.

Equals

({}[{}])((){[()](<{}>)}{})

Not Equals

({}[{}])({(<{}>)()}{})

Courtesy of H.PWiz

To get an equals or not equals that doesn't destroy the values it is comparing use (({}[({})])<({}({}))>) instead of ({}[{}]).


Less than Zero

([([{}(())])](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}

Greater than zero

([({}[(())])](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}

Less than or equal to zero

([([{}]<(())>)](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}

Greater than or equal to zero

([({}<(())>)](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}

Courtesy of MegaTom

Short Versions

Equals

({}[{}])

Results in 0 if they are equal some other number otherwise.