Optional part; value when optional part not used

ID: 198

				
					using uCalcSoftware;

var uc = new uCalc();
var t = uc.NewTransformer();

t.FromTo("This is a [{adj: simple}] test",
"Let's take the {adj}{!adj:short} test");

Console.WriteLine(t.Transform("This is a test"));
Console.WriteLine(t.Transform("This is a simple test"));
				
			
Let's take the short test
Let's take the simple test
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   auto t = uc.NewTransformer();

   t.FromTo("This is a [{adj: simple}] test",
   "Let's take the {adj}{!adj:short} test");

   cout << t.Transform("This is a test") << endl;
   cout << t.Transform("This is a simple test") << endl;
}
				
			
Let's take the short test
Let's take the simple test
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      Dim t = uc.NewTransformer()
      
      t.FromTo("This is a [{adj: simple}] test",
      "Let's take the {adj}{!adj:short} test")
      
      Console.WriteLine(t.Transform("This is a test"))
      Console.WriteLine(t.Transform("This is a simple test"))
   End Sub
End Module
				
			
Let's take the short test
Let's take the simple test