MV [SOLVED] How to add specific sounds only for dashing?

I want to use different sounds for walking and running, so I tried to use a JS-Code for each variant:
1711731825602.png

In short:
if ($gamePlayer.isMoving()) { play sound x... } (works fine)
if ($gamePlayer.isDashing()) { play sound y... }

Problem with that:
The dashing sound does not work properly, because when "Dashing" is true, the "Moving" is true too.
Does someone has an Idea on how to only play the dashing sound when "Dashing" is true?
(Even though I learned quite a lot from the community here, I'm still a JS noob)
Put in the basic movement if($gamePlayer.isMoving() && !$gamePlayer.isDashing())
So the logical "and" gets converted to an "and NOT" by adding a "!" before the boolean?

EDIT:
Tried it, and worked as I thought.
Thanks a lot man, this helps me with another issue too : )

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-add-specific-sounds-only-for-dashing.167289/