diffy
diffy copied to clipboard
Use Diffy to get true or false for if statement.
Is it possible to get a example of true or false if statement using diffy ? I'm working on a project that just needs to check if theres a difference if so then take a action.
It sounds like all you're really trying to do here is see if two strings or files are equal. You'd probably be better off just using ruby equality for this, and cutting diffy out of the equation.
e.g.
if string1 == string2
#handle equality
else
#handle difference
end