If else condition in Gatling test

Hi team,

Could anyone show me how can I use if else condition in Gatling scala?
Could anyone show me examples?

Thanks & Regards,
Dhrumil Shah

Please find gatling documentations

.doIf("${<sessionvariablename.exists()}"){exec(event.eventname)}

https://gatling.io/docs/2.3/general/scenario/