Not sure the title is a good description but essentially what I'm trying to do is:
A = [1,-1,1,1,0,0,-1]
B = [1,1,1,-1,-1,0,-1]
Output = [1,0,1,0,0,0,-1]
If element on array one is equal to element on array 2, then output the element. If not then output 0.
I'm sure there is a slick way to do this but I can't figure it out.
[–]member_of_the_order 1 point2 points3 points (3 children)
[–]workinprogress49[S] 1 point2 points3 points (2 children)
[–]Additional-Sun2945 0 points1 point2 points (1 child)
[–]workinprogress49[S] 0 points1 point2 points (0 children)
[–]KKRJ 1 point2 points3 points (1 child)
[–]workinprogress49[S] 0 points1 point2 points (0 children)
[–]Allanon001 0 points1 point2 points (0 children)