mardi 19 mai 2020

How to add value to string with if statement

I want to add "/?login=1" to my url if checkbox is True

axios.get('https://web.site/api/login/'+username.value+'/'+password.value+'/?login=1')

how to modify +'/?login=1'

something like + '/?login=1' if checkbox is True

Aucun commentaire:

Enregistrer un commentaire