Calc Builder Support

Calc Builder support
Public write access is disabled. Please login

result same value string text 14.03.2018 17:31


I have 2 string text

for example:

$mconsegna0=ABETONE # (FIELD INPUT)


if ('$mconsegna0'=='$keys0') $disa=10

why the result is 0 and not 10 ?

i want ... if "find the same value" result is = 10
suggestion please.

Re: result same value string text 15.03.2018 08:55

per your question we can't see clearly which is the purpouse of your code, but we see you're comparing the 2 values 'names', as you're using quotes inside the 'if' expression (so '$mconsegna0' will never be equal to '$keys0'). As you will surely want to compare the two variables/values of $mconsegna0 and $keys0 you should write instead

if ($mconsegna0==$keys0)

Also including at your output ##mconsegna0## and ##keys0## will help you to check which are the real values being used and you can find out if there's any difference between them.

We also share a link to a tutorial about using matrix, in case it may help

Moonsoft Team
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback