If (Apache Tomcat 9.0.121 API Documentation)
Description: declaration: package: org.apache.jasper.tagplugins.jstl.core, class: If

# Class If

java.lang.Object
org.apache.jasper.tagplugins.jstl.core.If

All Implemented Interfaces:
  `TagPlugin`

public final class If extends Object implements TagPlugin
Tag plugin for the JSTL `<c:if>` tag. Generates optimized Java source for conditional execution.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `If()`
  Creates a new instance of the If tag plugin.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `doTag(TagPluginContext ctxt)`
  Generate codes for a custom tag.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### If

    public If()
    Creates a new instance of the If tag plugin.

- ## Method Details

  - ### doTag

    public void doTag(TagPluginContext ctxt)
    Description copied from interface: `TagPlugin`
    Generate codes for a custom tag.
    Specified by:
      `doTag` in interface `TagPlugin`
    Parameters:
      `ctxt` - a TagPluginContext for accessing Jasper functions