# window_last_flag

Source: https://libtmux.org/en/tmux/3.7c/catalog/formats/window_last_flag/

> 1 if window is the last used

format variable tmux3.7c

1 if window is the last used

* Scope

  Describes the window being formatted

* Type

  Text

* Usage

  `#{window_last_flag}`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_last_flag/#description)

1 if window is the last used

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_last_flag/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_last_flag/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/formats/window_last_flag/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_last_flag/#source)

* Defined in

  [`format.c:3713`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3713)

* C source reference

  [`format_cb_window_last_flag`](https://libtmux.org/en/tmux/3.7c/reference/c-function-format-c-format_cb_window_last_flag/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#window_last_flag)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_last_flag/#used-by)

Library documentation that names this format variable.

* Go

  [`tmux.FormatValues.WindowLastFlag`](https://libtmux.org/en/go/latest/reference/tmux-formatvalues-windowlastflag/), [`tmux.Window.LastFlag`](https://libtmux.org/en/go/latest/reference/tmux-window-lastflag/)
