MV How to group a > condition and a < condition in one?

I need to test a condition where the value of a variable is between two numbers.

I know the test:

$gameVariables.value(A) > X

But what if I want to do at the same time in one call:

$gameVariables.value(A) > X
$gameVariables.value(A) < Y


Any help appreciated!
Just use the AND operator ('&&') in your call and you should be fine.
Spoiler: Example
if (($gameVariables.value(A) > X) && ($gameVariables.value(A) < Y)) { // In between } else { // Other conditions }
Edit: Added another example utilizing ternary operators.
Spoiler: Another example
(($gameVariables.value(A) > X) && ($gameVariables.value(A) < Y)) ? TRUE : FALSE
Replace TRUE and FALSE with whatever you're trying to accomplish.
For future reference, here's a list of logical operators in JavaScript.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-group-a-condition-and-a-condition-in-one.133423/