Unable to evaluate mod values

1
So I’m trying to get the value which its index modulo 2 equal 0 but it gives me this error, please help i’m depressed with this. An error occurred while evaluating value of NativeMobile.Home_Native.container13$visibility: arg1.div is not a function. (In 'arg1.div(arg2)', 'arg1.div' is undefined) onError@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:137983:315 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:137971:23 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15686:49 trackDerivedFunction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13309:22 computeValue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13572:99 trackAndCompute@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13567:39 get@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13541:245 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15692:47 trackDerivedFunction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13309:22 computeValue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13572:99 trackAndCompute@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13567:39 get@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13541:245 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15712:29 dependOn@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15861:53 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:137989:66 trackDerivedFunction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13309:22 computeValue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13572:99 trackAndCompute@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13567:39 get@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13541:245 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15712:29 dependOn@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15861:53 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15591:46 trackDerivedFunction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13309:22 computeValue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13572:99 trackAndCompute@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13567:39 get@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13541:245 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15712:29 dependOn@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15861:53 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15612:37 trackDerivedFunction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13309:22 computeValue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13572:99 trackAndCompute@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13567:39 get@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13541:245 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15712:29 dependOn@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15861:53 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:126669:70 map@[native code] http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:126663:50 trackDerivedFunction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13309:22 computeValue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13572:99 trackAndCompute@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13567:39 get@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13541:245 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15712:29 dependOn@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:15861:53 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:126617:45 reactionRunner@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13852:11 trackDerivedFunction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13309:22 track@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13710:42 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13840:17 runReaction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13699:30 runReactionsHelper@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13760:42 reactionScheduler@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13746:13 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13774:29 reactionScheduler@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13773:16 runReactions@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13750:83 schedule@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13690:106 autorun@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13855:29 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:126616:43 mountState@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:31024:38 useState@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:31566:32 pluginWidget(ConditionalVisibilityWrapper)@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:126612:46 renderWithHooks@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:30543:33 mountIndeterminateComponent@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:32862:34 beginWork$1@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:37551:29 performUnitOfWork@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:36629:29 workLoopSync@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:36574:28 renderRootSync@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:36547:25 performSyncWorkOnRoot@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:36309:38 performSyncWorkOnRoot@[native code] http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:27583:40 unstable_runWithPriority@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:70455:30 flushSyncCallbackQueueImpl@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:27578:30 flushSyncCallbackQueue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:27567:35 batchedUpdates$1@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:36354:35 batchedUpdates@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:25145:36 reactionScheduler@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13773:16 runReactions@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13750:83 endBatch@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13651:19 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13422:119 executeAction@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13424:8 res@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:13388:27 tryCallOne@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:45087:16 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:45188:27 _callTimer@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:45516:17 _callImmediatesPass@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:45555:17 callImmediates@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:45772:33 __callImmediates@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:20117:35 http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:19896:34 __guard@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:20100:15 flushedQueue@http://192.168.1.4:8083/index.bundle?platform=android&dev=true&minify=false&app=com.mendix.developerapp.mx9&modulesOnly=false&runModule=true:19895:21 flushedQueue@[native code] invokeCallbackAndReturnFlushedQueue@[native code]
asked
1 answers
0

Check if the Index value or Current object value is empty ? 

you can change your Expression some thing like this 

if $currentObject!=empty

then if $currentObject/index!=empty

 then $currentObject/index mod 2 =0

and you can add your else statements accordingly.

answered