Checking if a variable has a value within a range

Hello, I want to make a conditional branch that checks if Variable 40 has a value between 21 and 30. Assuming I need to use the "Script" function within the Conditional Branch, what would I need to type inside?

Many thanks!
Code:
$gameVariables.value(40) >= 21 && $gameVariables.value(40) <= 30
As above, though may be worth noting this is possible using no scripting and two branches, one inside the other:
Code:
◆If:variable ≥ 21
  ◆If:variable ≤ 30
    ◆
  :End
  ◆
:End
Code:
$gameVariables.value(40) >= 21 && $gameVariables.value(40) <= 30

Great, thanks!
As above, though may be worth noting this is possible using no scripting and two branches, one inside the other:
Code:
◆If:variable ≥ 21
  ◆If:variable ≤ 30
    ◆
  :End
  ◆
:End

Had done this previously but I have a lot of functions like this and wanted the most efficient way. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/checking-if-a-variable-has-a-value-within-a-range.106838/