h k

h k

  • NA
  • 5
  • 655

How to convert array of int & bools from javascript to C#

Dec 14 2018 1:27 PM
Hello, My first one here - 
 
I need to convert the following from JS to C#.
Thanks in advance, 
 
{
var x0 = 0;
var x1 = 1;
var x2 = 2;
var x3 = 3;

var y = false;
var d = terminals;

y = (!(((d[x3] || d[x1]) || (d[x2] || d[x0]))));

return (y ? 1 : 0);
}
 
-----------------------

Answers (1)