jeudi 24 août 2017

c# if function: get operator from Text file

Is it possible to write an if statement with a changing operator?

The operator (<,>, =<; >=, =) has been saved earlier in a text file and is now a available in a string array called Parameter.

For example: Parameter [0] = {"<"};

The code should look like:

if (3 "Parameter[0]" 5) {//do something}

Thanks for helping!

Aucun commentaire:

Enregistrer un commentaire