Equality (==, !=)

✅ Works in Interactive Notebook

Category: Logic.

Test for equality or inequality between two values.

Syntax

x == y
x != y

Arguments

Examples

The following example loads an image, reads the text in the image, and shows the image if it contains "tea".

Load["./photo.jpg"]
GetText[]
If[Read[] == "tea"]
    Show[]

See Also

Made with ❤️ by capjamesg