Is it True?

Published by Mubashir Hassan in

In this challenge you will be given a relation between two numbers, written as a string. Write a function that determines if the relation is true or false.

Examples

isTrue("2=2") ➞ true

isTrue("8<7") ➞ false

isTrue("5=13") ➞ false

isTrue("15>4") ➞ true

Notes

Tests will only have three types of relations: =, >, and <

Watch a quick demo on how Edabit works.