# Ho to use if-else condition?

**1. In if-else condition I want to add text with comma i.e. ' e.g. patient's; apostrophe 's.
When I try to use this, then it is throws an error..

**2. ODK collect with local server.

**3. nothing.

c. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

Answer to **1, try and concatenate it with the below syntax
concat(\${first_name}, ’ ’, \${last_name})

Ad **1: Do you mean the single apostrophe? I think it needs to be escaped with \, so it would be e.g. patient\'s

Use if to specify a block of code to be executed, if a specified condition is true.
Use else to specify a block of code to be executed, if the same condition is false.
Use else if to specify a new condition to test, if the first condition is false.