Question: Newbie here. Unsure of how to ask let alone use the proper terminology right. This is my first time working with servers, webservices, and WCF. I'm doing this all in VB.net.

I'm tasked to program a server that receive a sms response from the client. The client provides an asmx webservice(i think).

I have one server running, implemented with WCF, that I thought was properly set up and waiting till it received some sort of message but it never did.

I then started to do more research and found that WCF has some legacy code that can let you consume webservices (httpbinding i believe).

How would I implement this exactly?

Answer: 
Support for the extended ternary operator was added in **Twig 1.12.0**.

1. If `foo` echo `yes` else echo `no`:

```
{{ foo ? 'yes' : 'no' }}

```
2. If `foo` echo it, else echo `no`:

```
{{ foo ?: 'no' }}

```

or

```
{{ foo ? foo : 'no' }}

```
3. If `foo` echo `yes` else echo nothing:

```
{{ foo ? 'yes' }}

```

or

```
{{ foo ? 'yes' : '' }}

```
4. Returns the value of `foo` if it is **defined** and **not null**, `no` otherwise:

```
{{ foo ?? 'no' }}

```
5. Returns the value of `foo` if it is **defined** (**empty** values also count), `no` otherwise:

```
{{ foo|default('no') }}

```
I just used `a` as a general variable name. You can also use endless if else like this:

```
{{ a == 1 ? 'first' : a == 2 ? 'second' : 'third' }}

```