Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 1
    Actually I was just trying to learn this conditional statement syntax. So instead of writing some effective conditions like $1 >5, I was just putting (1 == 1) and (1 != 1 ) for simulating true and false condition . My whole thought process was if the syntax works fine, I can simple replace this 1 == 1 with some useful conditions like $1 == 22 or anything else which is required for a given problem. I was unclear why the exact same statement didnt work in END block. As explained by your answer ( and @Stephen kitt's), I got to know END is actually a special pattern. Commented Feb 27, 2021 at 4:15