Is this what your after:
<input name="pw2" type="text" id="pw2" value="<?php echo(ValidatedField("Registration","pw2")) ?>" size="32" <?php
if (ValidatedField('Registration','Registration')) {
if ((strpos((",".ValidatedField("Registration","Registration").","), "," . "3" . ",") !== false || "3" == "") || (strpos((",".ValidatedField("Registration","Registration").","), "," . "4" . ",") !== false || "4" == "")) {
if (!(false)) {
?>
class="errorbackground"
<?php //WAFV_Conditional Registration.php Registration(3:)
}
}
}?>/>