Try like this:

if (somecondition) {
    @:<div>
}