Answer the question
In order to leave comments, you need to log in
How to display failed if condition is not found?
I make a request for the number of TD.class elements
$editLinks = $I->grabMultiple('.cont_editable', 'data-shopname');
if (count($editLinks) > 1){
print_r($editLinks);
} else {
<i>FAILED;</i>
}
Answer the question
In order to leave comments, you need to log in
$editLinks = $I->grabMultiple('.cont_editable', 'data-shopname');
if (count($editLinks) > 1) {
print_r($editLinks);
}
else {
?>
<i>FAILED</i>
<?php
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question