I need help with location code

I have created a questionnaire and based on the answers provided i want users to be directed to different pages. I created this code but i just cant get the location code to work.

import wixLocation from ‘wix-location’;

export function buttonB_onClick (event, $w) {
if ($w(“#dropdown1”).value === ‘Very Complex’ && $w(“#dropdown2”).value === ‘Yes’) {
wixLocation.to(“#Home”).url

}  **else if** ($w("#dropdown1").value === 'Very Complex' && $w("#dropdown2").value === 'No') { 

//PAGE 5
//wixLocation.to(“/INSERT PAGE HERE”);

}  **else if** ($w("#dropdown1").value === 'Simple' && $w("#dropdown2").value === 'Yes') { 

//PAGE 7
//wixLocation.to(“/INSERT PAGE HERE”);

}  **else if** ($w("#dropdown1").value === 'Simple' && $w("#dropdown2").value === 'No') { 

//PAGE 2
//wixLocation.to(“/INSERT PAGE HERE”);

}  **else if** ($w("#dropdown1").value === 'Somewhere In The Middle' && $w("#dropdown2").value === 'Yes') { 

//PAGE 3
//wixLocation.to(“/INSERT PAGE HERE”);

}

Hello

your not using the right syntax, check this documentation out :wix-location-frontend - Velo API Reference - Wix.com

Best
Massa