macro condition

Mahmoud Saghir asked on September 11, 2017 13:21

Hello,

How can I test if a variable has a specific arabic value using macro condition.

I used :

if(variable == "عربي") { ... }

but it didn't work.

Correct Answer

Trevor Fayas answered on September 11, 2017 13:58

try displaying the value on a page then viewing the html source, it's possible the value is html encoded and you will need to match on that.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Mahmoud Saghir answered on September 11, 2017 14:02

Yes it works. Thanks for the answer .

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on September 11, 2017 15:22

Make sure to mark questions as answered if it worked so others can know and also so they don't look to answer something already answered. Thanks Mahmoud!

0 votesVote for this answer Mark as a Correct answer

Rollins Jack answered on September 14, 2017 07:02

The C preprocessor is entirely limited in its usefulness. I get a kick out of the chance to use GNU m4, which is intense. Unfortunately, its development is by one means or another stuck Assignment Help, I don't think about future discharges (if there ever will be one). With cpp, I'd simply characterize an esteem x as you did, but put the conditional directives outside of a macro.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.