Notifications
Clear all

[Closed] how to array Subtraction ?

HI,all
how to do SceneFileList3 = SceneFileList – SceneFileList2 ? thanks!
the code:

         	if MaxFileName != "" then
	(
	ATSOps.Refresh()
	SceneFileList = #()
		SceneFileList2 = #()
		SceneFileList3 = #()
	ATSOps.getFiles &SceneFileList
	deleteItem SceneFileList 1
	print SceneFileList
	if (SceneFileList.count != 0) do ( SceneFileList2 = (for n = SceneFileList.count to 1 by -1 where (pathConfig.isAbsolutePath SceneFileList[n] == true) collect SceneFilelist[n])
	
		ATSOps.numFilesSelected()
	
	
	)
)
2 Replies

 SceneFileList3 = for i in SceneFileList where finditem SceneFileList2 i == 0 collect i
 

Thanks denisT! the code Work very powerful