--- title: "is workflow in state()" slug: "wf-state" updated: 2025-12-10T06:30:15Z published: 2025-12-10T06:30:15Z canonical: "docs.lobstersoftware.com/wf-state" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # is workflow in state() **This function is deprecated.** This function returns *true* if the workflow job **a** is in state **b**, otherwise *false*. ## Parameters | Parameter | Description | | --- | --- | | a | Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job. | | b | The name of the state to be checked. |