DEV Community

pooyaalamdari
pooyaalamdari

Posted on

Not keyword in if statement

if not (x == 1)
Enter fullscreen mode Exit fullscreen mode
if ! (x == 1)
Enter fullscreen mode Exit fullscreen mode
unless (x == 1)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)