> For the complete documentation index, see [llms.txt](https://docs.intrepidcs.com/vspy-3-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intrepidcs.com/vspy-3-documentation/3.9.15/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block-commands/script-type-function-block-command-jump-if.md).

# Script Type Function Block Command: Jump If

### Command Description

This command evaluates a supplied expression, and if it is **True**, immediately directs Vehicle Spy to continue the script at the step number provided.

**Jump If** differs from **Jump To** in that the jump only occurs if the expression is **True**. It can be used to conditionally control the flow of execution of a function block script, such as skipping certain commands based on a signal value.

Note that excessive use of **Jump If** and **Jump To** commands can make a script difficult to understand. In many cases, an [If / Else / Else If / End If](/vspy-3-documentation/3.9.15/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block-commands/script-type-function-block-commands-if-else-else-if-end-if.md) structure can accomplish the same task with code that is easier to understand.

### Value Field Parameters

Double-clicking the **Value** field brings up a dialog box (Figure 1) to set two command parameters: the expression to evaluate, and the step to branch to if the expression is **True**.

![Figure 1: Setting the expression to evaluate and destination step number for the Jump If command..](https://2396693198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlRJv2XDCMeZSU0VbeZlG%2Fuploads%2Fgit-blob-f9e8430ddcad1839c5ddd2b29e1f11dd588d563d%2Ffb_jump_if.gif?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.intrepidcs.com/vspy-3-documentation/3.9.15/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block-commands/script-type-function-block-command-jump-if.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
